How to disable the action “reset_select_enum_rules”
-
I’ve a select form field prefilled with the filter wpcf7_form_tag_data_option and the validation message appears and the field is marked invalid.
Because I’ve a second select field that needs the value of the first select to make an AJAX request, I need to disable this because I do all the validation in the
wpcf7_validate_select*
filter.I’ve tried to disable the new action introduced in 6.1.0 version, but I can’t. I’ve checked the action name and is registered with this name.
The snippets that I’ve tried
remove_action('wpcf7_init', 'reset_select_enum_rules', 100);
remove_action('wpcf7_init', 'Cf7_2_Post_Public–>reset_select_enum_rules', 100);
There’s a way to disable the Schema-Woven Validation in your plugin?
Thanks!
- You must be logged in to reply to this topic.