This hook is run before a field value is returned in plain text format. Using this hook will affect the way that the value is displayed in plain text notifications.
quform_get_value_text_X_X
This hook is run for a single field.
Example
12
3
4
5
| add_filter('quform_get_value_text_1_3', function ($value, Quform_Element_Field $element, Quform_Form $form) { // Custom code return $value; }, 10, 3); |
add_filter('quform_get_value_text_1_3', function ($value, Quform_Element_Field $element, Quform_Form $form) { // Custom code return $value; }, 10, 3);
- On line 1, replace the
1_3
with the element unique ID
1
2
3
4
5
6
7 | function my_get_value_text($value, Quform_Element_Field $element, Quform_Form $form) { // Custom code return $value; } add_filter('quform_get_value_text_1_3', 'my_get_value_text', 10, 3); |
function my_get_value_text($value, Quform_Element_Field $element, Quform_Form $form) { // Custom code return $value; } add_filter('quform_get_value_text_1_3', 'my_get_value_text', 10, 3);
- On line 7, replace the
1_3
with the element unique ID
Parameters
$value
–string
– the current plain text value$element
–Quform_Element_Field
– the element instance$form
–Quform_Form
– the form instance