gfpdf_field_html_value

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

Description

apply_filters( 'gfpdf_field_html_value', (unknown) $html, (unknown) $value, (unknown) $show_label, (unknown) $label, (unknown) $this_field, (unknown) $this_form, (unknown) $this_entry, (unknown) $instance ); 

Parameters (8)

0. $html (unknown)
The html.
1. $value (unknown)
The value.
2. $show_label (unknown)
The show label.
3. $label (unknown)
The label.
4. $this_field (unknown)
The this field.
5. $this_form (unknown)
The this form.
6. $this_entry (unknown)
The this entry.
7. $instance (unknown)
The instance.

Usage

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

Defined (1)

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

/src/helper/abstract/Helper_Abstract_Fields.php  
  1. return apply_filters( 'gfpdf_field_html_value', $html, $value, $show_label, $label, $this->field, $this->form, $this->entry, $this );