gpep_target_field_value
Description
Filter the value of a target field’s value.
Usage
Apply to all target fields on forms using GP Easy Passthrough.
add_filter( 'gpep_target_field_value', 'my_custom_function' );Apply to all target fields on a specific form using GP Easy Passthrough.
add_filter( 'gpep_target_field_value_FORMID', 'my_custom_function' );Apply to a specific target field on a specific form populated by GP Easy Passthrough.
add_filter( 'gpep_target_field_value_FORMID_FIELDID', 'my_custom_function' );Parameters
$field_value string
The field value to be displayed in the target field.
$form_id string
Form ID of the current form that the target field belongs to.
$target_field_id string
Field ID that field value is being filtered for.
Examples
Remove price at the end of a specific target field’s value.
This example will change Product Name ($5.00) to Product Name for field 2 on form 19.
Since
This filter is available since GP Easy Passthrough 1.4.10.