The contact-form-7 wpcf7 form class attr hook.
Published Date - July 22, 2023
$class = apply_filters( 'wpcf7_form_class_attr', $class );
$class
The following example is for adding a hook callback.
// define the wpcf7_form_class_attr callback
function custom_wpcf7_form_class_attr( $class ){
//custom code here
return $class
}
//add the action
add_filter('wpcf7_form_class_attr', 'custom_wpcf7_form_class_attr', 10, 1)
The filter is defined in the following location(s).
contact-form-7/includes/contact-form.php
$class = apply_filters( 'wpcf7_form_class_attr', $class );