Email submitted converted in UPPERCASE except email and url
-
Hello,
I have this hook to convert all user input to uppercase in notification emails, the code in functions.php is the one below.
Now I would like to implement the code to exclude the EMAIL and URL fields, how can I do it?
Thxadd_filter( 'wpcf7_mail_tag_replaced', function( $replaced, $submitted, $html, $mail_tag ) { if ( is_string( $submitted ) ) { $replaced = strtoupper( $submitted ); } return $replaced; }, 10, 4 );The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Email submitted converted in UPPERCASE except email and url’ is closed to new replies.