gfpdfe_pdf_output_type

Set display type and allow user to override the behaviour.

Description

apply_filters( 'gfpdfe_pdf_output_type', (unknown) $settings_pdf_action ); 

Parameters (1)

0. $settings_pdf_action (unknown)
The settings pdf action.

Usage

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

Defined (1)

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

/src/view/View_PDF.php  
  1. $settings['pdf_action'] = apply_filters( 'gfpdfe_pdf_output_type', $settings['pdf_action'] ); /** Backwards compat */