gfpdf_skip_highlight_errors

Add way to skip the highlighting of errors.

Description

apply_filters( 'gfpdf_skip_highlight_errors', (bool) $false, (unknown) $field, (unknown) $input ); 

Parameters (3)

0. $false (bool) => false
The false.
1. $field (unknown)
The field.
2. $input (unknown)
The input.

Usage

To run the hook, copy the example below.
  1. $false = apply_filters( 'gfpdf_skip_highlight_errors', $false, $field, $input ); 
  2.  
  3. if ( !empty( $false ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_skip_highlight_errors callback 
  2. function filter_gfpdf_skip_highlight_errors( $false, $field, $input ) { 
  3. // make filter magic happen here... 
  4. return $false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_skip_highlight_errors', 'filter_gfpdf_skip_highlight_errors', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_skip_highlight_errors', 'filter_gfpdf_skip_highlight_errors', 10, 3 ); 

Defined (1)

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

/src/model/Model_Form_Settings.php  
  1. $skip_errors = apply_filters( 'gfpdf_skip_highlight_errors', false, $field, $input );