This filter can be used to add to or modify the variables passed directly to PDF templates. It can be useful if you want to ensure custom data is available to all Gravity PDF templates, or all templates assigned to a particular Gravity Form.
$data | array
- An associative array that includes all variables passed to PDF templates. The array gets passed to the PHP
extract()function when your template is included so they are available as standard variables.
$entry | array
- The raw Gravity Forms Entry array.
$settings | array
- The current PDF configuration array.
$form | array
- The current Gravity Forms array
The following snippet can be used to include new data to all our PDF templates:
The following snippet can be used to include new data to a specific Gravity Forms's PDF templates:
This filter is located in the
Helper_Misc::get_template_args() method of