quform_get_value_html

This hook is run before a field value is returned in HTML format. Using this hook will affect the way that the value is displayed in HTML notifications and when viewing entries.

quform_get_value_html_X_X

This hook is run for a single field.

Example

12
3
add_filter('quform_get_value_html_1_3', function ($value, Quform_Element_Field $element, Quform_Form $form) {    return '<strong>' . $value . '</strong>';
}, 10, 3);
add_filter('quform_get_value_html_1_3', function ($value, Quform_Element_Field $element, Quform_Form $form) {
    return '<strong>' . $value . '</strong>';
}, 10, 3);
1
2
3
4
5
function my_get_value_html($value, Quform_Element_Field $element, Quform_Form $form)
{
    return '<strong>' . $value . '</strong>';
}
add_filter('quform_get_value_html_1_3', 'my_get_value_html', 10, 3);
function my_get_value_html($value, Quform_Element_Field $element, Quform_Form $form)
{
    return '<strong>' . $value . '</strong>';
}
add_filter('quform_get_value_html_1_3', 'my_get_value_html', 10, 3);

Parameters

  • $valuestring – the current HTML value (already HTML-escaped)
  • $elementQuform_Element_Field – the element instance
  • $formQuform_Form – the form instance
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy