gfpdfe_pdf_template_<id>

Backwards compat.

Description

apply_filters( 'gfpdfe_pdf_template_<id>', (unknown) $html, (unknown) $this_entry_id, (unknown) $args_settings ); 

Parameters (3)

0. $html (unknown)
The html.
1. $this_entry_id (unknown)
The this entry id.
2. $args_settings (unknown)
The args settings.

Usage

To run the hook, copy the example below.
  1. $html = apply_filters( 'gfpdfe_pdf_template_{$id}', $html, $this_entry_id, $args_settings ); 
  2.  
  3. if ( !empty( $html ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdfe_pdf_template_<id> callback 
  2. function filter_gfpdfe_pdf_template_id( $html, $this_entry_id, $args_settings ) { 
  3. // make filter magic happen here... 
  4. return $html
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "gfpdfe_pdf_template_{$id}", 'filter_gfpdfe_pdf_template_id', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "gfpdfe_pdf_template_{$id}", 'filter_gfpdfe_pdf_template_id', 10, 3 ); 

Defined (1)

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

/src/helper/Helper_PDF.php  
  1. $html = apply_filters( 'gfpdfe_pdf_template_' . $form['id'], $html, $this->entry['id'], $args['settings'] ); /** Backwards compat */