gfpdf_section_content_display_setting

Return the optional template-specific section content field.

Description

Returns (array)

Parameters (9)

0. $id_show_section_content — Optional. (unknown) => [ 'id' => 'show_section_content'
The id show section content.
1. $name_esc_html_show_section_break_description_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Show Section Break Description', 'gravity-forms-pdf-extended' )
The name esc html show section break description gravity forms pdf extended.
2. $desc_esc_html_display_the_section_break_field_description_in_the_pdf_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Display the Section Break field description in the PDF.', 'gravity-forms-pdf-extended' )
The desc esc html display the section break field description in 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_section_content = apply_filters( 'gfpdf_section_content_display_setting', $id_show_section_content, $name_esc_html_show_section_break_description_gravity_forms_pdf_extended, $desc_esc_html_display_the_section_break_field_description_in_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_section_content ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_section_content_display_setting callback 
  2. function filter_gfpdf_section_content_display_setting( $id_show_section_content, $name_esc_html_show_section_break_description_gravity_forms_pdf_extended, $desc_esc_html_display_the_section_break_field_description_in_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_section_content
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_section_content_display_setting', 'filter_gfpdf_section_content_display_setting', 10, 9 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_section_content_display_setting', 'filter_gfpdf_section_content_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_section_content_display_setting', [