gfpdf_form_title_display_setting

Return the optional template-specific form title field.

Description

Returns (array)

Parameters (9)

0. $id_show_form_title — Optional. (unknown) => [ 'id' => 'show_form_title'
The id show form title.
1. $name_esc_html_show_form_title_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Show Form Title', 'gravity-forms-pdf-extended' )
The name esc html show form title gravity forms pdf extended.
2. $desc_esc_html_display_the_form_title_at_the_beginning_of_the_pdf_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Display the form title at the beginning of the PDF.', 'gravity-forms-pdf-extended' )
The desc esc html display the form title at the beginning of the pdf gravity forms pdf extended.
3. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
4. $options_yes_esc_html_yes_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' )
The options yes esc html yes gravity forms pdf extended.
5. $no_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The no esc html no gravity forms pdf extended.
6. $var (unknown) => ]
The var.
7. $std_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The std esc html no gravity forms pdf extended.
8. $var (unknown) => ]
The var.

Usage

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

Defined (1)

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

/src/helper/Helper_Options_Fields.php  
  1. return apply_filters( 'gfpdf_form_title_display_setting', [