gfpdf_post_pdf_save

The Gravity PDF gfpdf post pdf save hook.

Description

do_action( 'gfpdf_post_pdf_save', (unknown) $form_id, (unknown) $entry_id, (unknown) $settings, (unknown) $pdf_path ); 

Parameters (4)

0. $form_id (unknown)
The form id.
1. $entry_id (unknown)
The entry id.
2. $settings (unknown)
The settings.
3. $pdf_path (unknown)
The pdf path.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gfpdf_post_pdf_save', $form_id, $entry_id, $settings, $pdf_path ); 
The following example is for adding a hook callback.
  1. // define the gfpdf_post_pdf_save callback 
  2. function action_gfpdf_post_pdf_save( $form_id, $entry_id, $settings, $pdf_path ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'gfpdf_post_pdf_save', 'action_gfpdf_post_pdf_save', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'gfpdf_post_pdf_save', 'action_gfpdf_post_pdf_save', 10, 4 ); 

Defined (1)

The action is defined in the following location(s).

/src/model/Model_PDF.php  
  1. do_action( 'gfpdf_post_pdf_save', $form['id'], $entry['id'], $settings, $pdf_path ); /** Backwards compatibility */