wpcf7_validate_text only for a specific form ?
-
Hello,
I have this simple code in my functions.php:
add_filter( 'wpcf7_validate_text*', 'my_magic_function', 20, 2 ); function my_magic_function( $result, $tag ) { blablabla }
But now I have 2 forms (id=123 and id=456) and both are using ‘my_magic_function’. This is NOT what I want to do. I want only to use ‘my_magic_function’ for the form 123…
How to do that please? Is it possible?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wpcf7_validate_text only for a specific form ?’ is closed to new replies.