gfpdfe_pre_load_template

Backwards compatibility for our Tier 2 plugin.

Description

apply_filters( 'gfpdfe_pre_load_template', (unknown) $form_id, (unknown) $entry_id, (string) $basename, (unknown) $form_id_entry_id, (unknown) $this_misc_backwards_compat_output_pdf_get_output_type, (string) $pdf_get_filename, (unknown) $this_misc_backwards_compat_conversion_settings_form_entry, (unknown) $args ); 

Parameters (8)

0. $form_id (unknown)
The form id.
1. $entry_id (unknown)
The entry id.
2. $basename (string) => basename( $pdf->get_template_path() )
The basename.
3. $form_id_entry_id (unknown)
The form id entry id.
4. $this_misc_backwards_compat_output_pdf_get_output_type (unknown)
The this misc backwards compat output pdf get output type.
5. $pdf_get_filename (string)
The pdf get filename.
6. $this_misc_backwards_compat_conversion_settings_form_entry (unknown)
The this misc backwards compat conversion settings form entry.
7. $args (unknown)
The args.

Usage

To run the hook, copy the example below.
  1. $form_id = apply_filters( 'gfpdfe_pre_load_template', $form_id, $entry_id, $basename, $form_id_entry_id, $this_misc_backwards_compat_output_pdf_get_output_type, $pdf_get_filename, $this_misc_backwards_compat_conversion_settings_form_entry, $args ); 
  2.  
  3. if ( !empty( $form_id ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdfe_pre_load_template callback 
  2. function filter_gfpdfe_pre_load_template( $form_id, $entry_id, $basename, $form_id_entry_id, $this_misc_backwards_compat_output_pdf_get_output_type, $pdf_get_filename, $this_misc_backwards_compat_conversion_settings_form_entry, $args ) { 
  3. // make filter magic happen here... 
  4. return $form_id
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdfe_pre_load_template', 'filter_gfpdfe_pre_load_template', 10, 8 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdfe_pre_load_template', 'filter_gfpdfe_pre_load_template', 10, 8 ); 

Defined (1)

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

/src/model/Model_PDF.php  
  1. $prevent_main_pdf_loader = apply_filters( 'gfpdfe_pre_load_template',