gfpdf_field_value

Get the Gravity Forms field value.

Description

apply_filters( 'gfpdf_field_value', (unknown) $gfformsmodel, (unknown) $this_field, (unknown) $this_entry ); 

See https://gravitypdf.com/documentation/v4/gfpdf_field_value/ for more details about this filter

Parameters (3)

0. $gfformsmodel (unknown) => GFFormsModel::get_lead_field_value( $this->entry, $this->field )
The gfformsmodel.
1. $this_field (unknown)
The this field.
2. $this_entry (unknown)
The this entry.

Usage

To run the hook, copy the example below.
  1. $gfformsmodel = apply_filters( 'gfpdf_field_value', $gfformsmodel, $this_field, $this_entry ); 
  2.  
  3. if ( !empty( $gfformsmodel ) ) { 
  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_value callback 
  2. function filter_gfpdf_field_value( $gfformsmodel, $this_field, $this_entry ) { 
  3. // make filter magic happen here... 
  4. return $gfformsmodel
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_field_value', 'filter_gfpdf_field_value', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_field_value', 'filter_gfpdf_field_value', 10, 3 ); 

Defined (1)

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

/src/helper/abstract/Helper_Abstract_Fields.php  
  1. return apply_filters( 'gfpdf_field_value', GFFormsModel::get_lead_field_value( $this->entry, $this->field ), $this->field, $this->entry );