gfpdfe_pdf_filename

Backwards compatible filter.

Description

apply_filters( 'gfpdfe_pdf_filename', (string) $name, (unknown) $form, (unknown) $entry, (unknown) $settings ); 

Parameters (4)

0. $name (string)
The name.
1. $form (unknown)
The form.
2. $entry (unknown)
The entry.
3. $settings (unknown)
The settings.

Usage

To run the hook, copy the example below.
  1. $name = apply_filters( 'gfpdfe_pdf_filename', $name, $form, $entry, $settings ); 
  2.  
  3. if ( !empty( $name ) ) { 
  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_filename callback 
  2. function filter_gfpdfe_pdf_filename( $name, $form, $entry, $settings ) { 
  3. // make filter magic happen here... 
  4. return $name
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdfe_pdf_filename', 'filter_gfpdfe_pdf_filename', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdfe_pdf_filename', 'filter_gfpdfe_pdf_filename', 10, 4 ); 

Defined (1)

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

/src/model/Model_PDF.php  
  1. $name = apply_filters( 'gfpdfe_pdf_filename', $name, $form, $entry, $settings );