gfpdf_conditional_display_setting

Return the optional template-specific hidden field.

Description

(array) apply_filters( 'gfpdf_conditional_display_setting', (callback) $array ); 

Returns (array)

Parameters (1)

0. $array — Optional. (callback) => array( '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' => array( 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ), 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ), ), 'std' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ), '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 array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'gfpdf_conditional_display_setting', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  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( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_conditional_display_setting', 'filter_gfpdf_conditional_display_setting', 10, 1 ); 
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, 1 ); 

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', array(