gfpdf_field_content

Prevent shortcodes and merge tags being processed from user input.

Description

apply_filters( 'gfpdf_field_content', (unknown) $value, (unknown) $this_field, (unknown) $gfformsmodel, (unknown) $this_entry_id, (unknown) $this_form_id ); 

Parameters (5)

0. $value (unknown)
The value.
1. $this_field (unknown)
The this field.
2. $gfformsmodel (unknown) => GFFormsModel::get_lead_field_value( $this->entry, $this->field )
The gfformsmodel.
3. $this_entry_id (unknown)
The this entry id.
4. $this_form_id (unknown)
The this form id.

Usage

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

Defined (1)

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

/src/helper/abstract/Helper_Abstract_Fields.php  
  1. $value = apply_filters( 'gfpdf_field_content', $value, $this->field, GFFormsModel::get_lead_field_value( $this->entry, $this->field ), $this->entry['id'], $this->form['id'] ); /** Backwards compat */