gfpdf_pre_html_browser_output

The Gravity PDF gfpdf pre html browser output hook.

Description

apply_filters( 'gfpdf_pre_html_browser_output', (unknown) $html, (unknown) $this_settings, (unknown) $this_entry, (unknown) $this_gform, (unknown) $instance ); 

Parameters (5)

0. $html (unknown)
The html.
1. $this_settings (unknown)
The this settings.
2. $this_entry (unknown)
The this entry.
3. $this_gform (unknown)
The this gform.
4. $instance (unknown)
The instance.

Usage

To run the hook, copy the example below.
  1. $html = apply_filters( 'gfpdf_pre_html_browser_output', $html, $this_settings, $this_entry, $this_gform, $instance ); 
  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 gfpdf_pre_html_browser_output callback 
  2. function filter_gfpdf_pre_html_browser_output( $html, $this_settings, $this_entry, $this_gform, $instance ) { 
  3. // make filter magic happen here... 
  4. return $html
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_pre_html_browser_output', 'filter_gfpdf_pre_html_browser_output', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_pre_html_browser_output', 'filter_gfpdf_pre_html_browser_output', 10, 5 ); 

Defined (1)

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

/src/helper/Helper_PDF.php  
  1. echo apply_filters( 'gfpdf_pre_html_browser_output', $html, $this->settings, $this->entry, $this->gform, $this );