gfpdf_template_header_details

We load in data from the PDF template headers.

Description

Parameters (9)

0. $template_esc_html_template_name_gravity_forms_pdf_extended — Optional. (string) => [ 'template' => esc_html__( 'Template Name', 'gravity-forms-pdf-extended' )
The template esc html template name gravity forms pdf extended.
1. $version_esc_html_version_gravity_forms_pdf_extended — Optional. (string) => 'version' => esc_html__( 'Version', 'gravity-forms-pdf-extended' )
The version esc html version gravity forms pdf extended.
2. $description_esc_html_description_gravity_forms_pdf_extended — Optional. (string) => 'description' => esc_html__( 'Description', 'gravity-forms-pdf-extended' )
The description esc html description gravity forms pdf extended.
3. $author_esc_html_author_gravity_forms_pdf_extended — Optional. (string) => 'author' => esc_html__( 'Author', 'gravity-forms-pdf-extended' )
The author esc html author gravity forms pdf extended.
4. $author_uri_esc_html_author_uri_gravity_forms_pdf_extended — Optional. (string) => 'author uri' => esc_html__( 'Author URI', 'gravity-forms-pdf-extended' )
The author uri esc html author uri gravity forms pdf extended.
5. $group_esc_html_group_gravity_forms_pdf_extended — Optional. (string) => 'group' => esc_html__( 'Group', 'gravity-forms-pdf-extended' )
The group esc html group gravity forms pdf extended.
6. $required_pdf_version_esc_html_required_pdf_version_gravity_forms_pdf_extended — Optional. (string) => 'required_pdf_version' => esc_html__( 'Required PDF Version', 'gravity-forms-pdf-extended' )
The required pdf version esc html required pdf version gravity forms pdf extended.
7. $tags_esc_html_tags_gravity_forms_pdf_extended — Optional. (string) => 'tags' => esc_html__( 'Tags', 'gravity-forms-pdf-extended' )
The tags esc html tags gravity forms pdf extended.
8. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $template_esc_html_template_name_gravity_forms_pdf_extended = apply_filters( 'gfpdf_template_header_details', $template_esc_html_template_name_gravity_forms_pdf_extended, $version_esc_html_version_gravity_forms_pdf_extended, $description_esc_html_description_gravity_forms_pdf_extended, $author_esc_html_author_gravity_forms_pdf_extended, $author_uri_esc_html_author_uri_gravity_forms_pdf_extended, $group_esc_html_group_gravity_forms_pdf_extended, $required_pdf_version_esc_html_required_pdf_version_gravity_forms_pdf_extended, $tags_esc_html_tags_gravity_forms_pdf_extended, $var ); 
  2.  
  3. if ( !empty( $template_esc_html_template_name_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_template_header_details callback 
  2. function filter_gfpdf_template_header_details( $template_esc_html_template_name_gravity_forms_pdf_extended, $version_esc_html_version_gravity_forms_pdf_extended, $description_esc_html_description_gravity_forms_pdf_extended, $author_esc_html_author_gravity_forms_pdf_extended, $author_uri_esc_html_author_uri_gravity_forms_pdf_extended, $group_esc_html_group_gravity_forms_pdf_extended, $required_pdf_version_esc_html_required_pdf_version_gravity_forms_pdf_extended, $tags_esc_html_tags_gravity_forms_pdf_extended, $var ) { 
  3. // make filter magic happen here... 
  4. return $template_esc_html_template_name_gravity_forms_pdf_extended
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_template_header_details', 'filter_gfpdf_template_header_details', 10, 9 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_template_header_details', 'filter_gfpdf_template_header_details', 10, 9 ); 

Defined (1)

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

/src/helper/Helper_Templates.php  
  1. return apply_filters( 'gfpdf_template_header_details', [