gfpdf_post_save_pdf_<id>

The Gravity PDF gfpdf post save pdf id hook.

Description

do_action( 'gfpdf_post_save_pdf_<id>', (unknown) $pdf_path, (string) $filename, (unknown) $settings, (unknown) $entry, (unknown) $form ); 

Parameters (5)

0. $pdf_path (unknown)
The pdf path.
1. $filename (string)
The filename.
2. $settings (unknown)
The settings.
3. $entry (unknown)
The entry.
4. $form (unknown)
The form.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gfpdf_post_save_pdf_{$id}', $pdf_path, $filename, $settings, $entry, $form ); 
The following example is for adding a hook callback.
  1. // define the gfpdf_post_save_pdf_<id> callback 
  2. function action_gfpdf_post_save_pdf_id( $pdf_path, $filename, $settings, $entry, $form ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "gfpdf_post_save_pdf_{$id}", 'action_gfpdf_post_save_pdf_id', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "gfpdf_post_save_pdf_{$id}", 'action_gfpdf_post_save_pdf_id', 10, 5 ); 

Defined (1)

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

/src/model/Model_PDF.php  
  1. do_action( 'gfpdf_post_save_pdf_' . $form['id'], $pdf_path, $filename, $settings, $entry, $form );