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 easily add a class to the frm_form_fields div which surrounds your forms.
Usage
add_filter('frm_form_fields_class', 'add_form_class', 10, 2);
Parameters
- $classes (string)
- $form_values (array)
Examples
Add a class to all forms
add_filter('frm_form_fields_class', 'add_form_class', 10, 2);
function add_form_class($classes, $form_values){
$classes .= ' my_class'; //replace my_class with the name of your class
return $classes;
}