Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to add CSS classes to the validation message class for all forms.
Usage
add_filter('frm_form_error_class', 'frm_add_error_class', 10, 1); function frm_add_error_class($class)
Parameters
- $class (string)
Examples
Add a class to the validation message div
add_filter('frm_form_error_class', 'frm_add_error_class', 10, 1);
function frm_add_error_class($class){
$class .= ' my_form_error_class';
return $class;
}