gfpdf_conditional_display_setting

Return the optional template-specific hidden field.

Description

Returns (array)

Parameters (10)

0. $id_enable_conditional — Optional. (unknown) => [ 'id' => 'enable_conditional'
The id enable conditional.
1. $name_esc_html_enable_conditional_logic_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Enable Conditional Logic', 'gravity-forms-pdf-extended' )
The name esc html enable conditional logic gravity forms pdf extended.
2. $desc_esc_html_when_enabled_the_pdf_will_adhere_to_the_form_field_conditional_logic_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'When enabled the PDF will adhere to the form field conditional logic.', 'gravity-forms-pdf-extended' )
The desc esc html when enabled the pdf will adhere to the form field conditional logic 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_yes_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' )
The std esc html yes gravity forms pdf extended.
8. $tooltip_h6_esc_html_enable_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_enable_this_option_to_hide_failed_conditional_logic_fields_in_the_pdf_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Enable Conditional Logic', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Enable this option to hide failed conditional logic fields in the PDF.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html enable conditional logic gravity forms pdf extended h6 esc html enable this option to hide failed conditional logic fields in the pdf gravity forms pdf extended.
9. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $id_enable_conditional = apply_filters( 'gfpdf_conditional_display_setting', $id_enable_conditional, $name_esc_html_enable_conditional_logic_gravity_forms_pdf_extended, $desc_esc_html_when_enabled_the_pdf_will_adhere_to_the_form_field_conditional_logic_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_yes_gravity_forms_pdf_extended, $tooltip_h6_esc_html_enable_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_enable_this_option_to_hide_failed_conditional_logic_fields_in_the_pdf_gravity_forms_pdf_extended, $var ); 
  2.  
  3. if ( !empty( $id_enable_conditional ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_conditional_display_setting callback 
  2. function filter_gfpdf_conditional_display_setting( $id_enable_conditional, $name_esc_html_enable_conditional_logic_gravity_forms_pdf_extended, $desc_esc_html_when_enabled_the_pdf_will_adhere_to_the_form_field_conditional_logic_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_yes_gravity_forms_pdf_extended, $tooltip_h6_esc_html_enable_conditional_logic_gravity_forms_pdf_extended_h6_esc_html_enable_this_option_to_hide_failed_conditional_logic_fields_in_the_pdf_gravity_forms_pdf_extended, $var ) { 
  3. // make filter magic happen here... 
  4. return $id_enable_conditional
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_conditional_display_setting', 'filter_gfpdf_conditional_display_setting', 10, 10 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_conditional_display_setting', 'filter_gfpdf_conditional_display_setting', 10, 10 ); 

Defined (1)

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

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