gfpdf_field_class_<inputtype>

The Gravity PDF gfpdf field class inputtype hook.

Description

apply_filters( 'gfpdf_field_class_<inputtype>', (unknown) $this_fieldobject, (unknown) $field, (unknown) $entry, (unknown) $this_form ); 

Parameters (4)

0. $this_fieldobject (unknown)
The this fieldobject.
1. $field (unknown)
The field.
2. $entry (unknown)
The entry.
3. $this_form (unknown)
The this form.

Usage

To run the hook, copy the example below.
  1. $this_fieldobject = apply_filters( 'gfpdf_field_class_{$inputtype}', $this_fieldobject, $field, $entry, $this_form ); 
  2.  
  3. if ( !empty( $this_fieldobject ) ) { 
  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_class_<inputtype> callback 
  2. function filter_gfpdf_field_class_inputtype( $this_fieldobject, $field, $entry, $this_form ) { 
  3. // make filter magic happen here... 
  4. return $this_fieldobject
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "gfpdf_field_class_{$inputtype}", 'filter_gfpdf_field_class_inputtype', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "gfpdf_field_class_{$inputtype}", 'filter_gfpdf_field_class_inputtype', 10, 4 ); 

Defined (4)

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

/src/helper/fields/Field_Survey.php  
  1. $this->fieldObject = apply_filters( 'gfpdf_field_class_' . $field->inputType, $this->fieldObject, $field, $entry, $this->form ); 
/src/helper/fields/Field_Post_Custom_Field.php  
  1. $this->fieldObject = apply_filters( 'gfpdf_field_class_' . $field->inputType, $this->fieldObject, $field, $entry, $this->form ); 
/src/helper/fields/Field_Post_Category.php  
  1. $this->fieldObject = apply_filters( 'gfpdf_field_class_' . $field->inputType, $this->fieldObject, $field, $entry, $this->form ); 
/src/helper/fields/Field_Poll.php  
  1. $this->fieldObject = apply_filters( 'gfpdf_field_class_' . $field->inputType, $this->fieldObject, $field, $entry, $this->form );