gfpdfe_pdf_template

Apply our filters.

Description

apply_filters( 'gfpdfe_pdf_template', (unknown) $html, (unknown) $form_id, (unknown) $this_entry_id, (unknown) $args_settings ); 

Parameters (4)

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

Usage

To run the hook, copy the example below.
  1. $html = apply_filters( 'gfpdfe_pdf_template', $html, $form_id, $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 callback 
  2. function filter_gfpdfe_pdf_template( $html, $form_id, $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', 'filter_gfpdfe_pdf_template', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdfe_pdf_template', 'filter_gfpdfe_pdf_template', 10, 4 ); 

Defined (1)

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

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