Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
Gravity PDF v4 will receive bug fixes and security updates until October 4, 2019, however it's recommended you upgrade to v5 as soon as practical.
Jump To Section

Description #description

Use this filter to include additional information in the $form_data array (which is used extensively in custom PDF templates). While you can remove information added to this array we strongly recommend against this. Instead, only use it to add new information.

Version #version

This filter was introduced in Gravity PDF 4.2.

Parameters #parameters

$form_data | array
The processed Gravity Forms data in array format
$entry | array
The raw Gravity Form Entry array.
$form | array
The Gravity Forms array

Usage #usage

The following will include a new piece of data in the ['misc'] key:

add_filter( 'gfpdf_form_data', function( $form_data, $entry, $form ) {

    $form_data['misc']['custom_key'] = 'Information';

    return $form_data;
}, 10, 3 );

Source Code #source-code

This filter is located in the Model_PDF::get_form_data() method in /src/model/Model_PDF.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Scroll To Top

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)