The Gravity PDF data class is a simple storage device for Gravity PDF data during the current PHP call – it's not persistent like a database. It uses PHP's class overloading feature to dynamically set and get variables that we can access throughout all classes in our plugin.
This method was introduced in Gravity PDF 4.0.
\GFPDF\Helper\Helper_Data | object
- The data class
This snippet shows how to access any data Gravity PDF stored in our data class:
You can also store your own data and use it later:
This method is located in
api.php and the data class can be found in