Schema Woven Validation Email rule for regex pattern
-
With the new SWV, is it possible to add a email rule with preg_match Regex pattern? I’m, currently using the old school filter
add_filter( 'wpcf7_validate_email*', 'custom_email_confirmation_validation_filter', 20, 2 );but the regex validation part seems to be overridden by SWV email check so I need to disable it in order for my custom filter regex to work:add_filter( ‘wpcf7_swv_available_rules’, function( $rules ) {
unset( $rules[’email’] );
return $rules;
} );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.