gfpdf_paper_size_dimensions

The Gravity PDF gfpdf paper size dimensions hook.

Description

apply_filters( 'gfpdf_paper_size_dimensions', (unknown) $millimeters_esc_html_mm_gravity_forms_pdf_extended, (string) $inches_esc_html_inches_gravity_forms_pdf_extended, (unknown) $var ); 

Parameters (3)

0. $millimeters_esc_html_mm_gravity_forms_pdf_extended — Optional. (unknown) => [ 'millimeters' => esc_html__( 'mm', 'gravity-forms-pdf-extended' )
The millimeters esc html mm gravity forms pdf extended.
1. $inches_esc_html_inches_gravity_forms_pdf_extended — Optional. (string) => 'inches' => esc_html__( 'inches', 'gravity-forms-pdf-extended' )
The inches esc html inches gravity forms pdf extended.
2. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $millimeters_esc_html_mm_gravity_forms_pdf_extended = apply_filters( 'gfpdf_paper_size_dimensions', $millimeters_esc_html_mm_gravity_forms_pdf_extended, $inches_esc_html_inches_gravity_forms_pdf_extended, $var ); 
  2.  
  3. if ( !empty( $millimeters_esc_html_mm_gravity_forms_pdf_extended ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_paper_size_dimensions callback 
  2. function filter_gfpdf_paper_size_dimensions( $millimeters_esc_html_mm_gravity_forms_pdf_extended, $inches_esc_html_inches_gravity_forms_pdf_extended, $var ) { 
  3. // make filter magic happen here... 
  4. return $millimeters_esc_html_mm_gravity_forms_pdf_extended
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_paper_size_dimensions', 'filter_gfpdf_paper_size_dimensions', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_paper_size_dimensions', 'filter_gfpdf_paper_size_dimensions', 10, 3 ); 

Defined (1)

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

/src/helper/abstract/Helper_Abstract_Options.php  
  1. $measurement = apply_filters( 'gfpdf_paper_size_dimensions', [