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