Contact form 7 send me a copy multilingual
-
Hello,
I would like to add a checkbox to my contact form on a multilingual web site.I tried the function described in this thread :
but I can’t figure out how to adapt it for a multilingual site where the checkbox could be different values.I tried something like this :
function my_wpcf7_use_mail_2_or_not( $additional_mail, $cf ) { if ( "Send me a copy" != $cf->posted_data['send_copy'][0] ) { $additional_mail = array(); } elseif ( "Envoyez-moi une copie" != $cf->posted_data['send_copy'][0] ) { $additional_mail = array(); } return $additional_mail; }
or like this :
function my_wpcf7_use_mail_2_or_not( $additional_mail, $cf ) { if ( "Envoyez-moi une copie" != $cf->posted_data['send_copy'][0] || "Send me a copy" != $cf->posted_data['send_copy'][0] ) $additional_mail = array(); return $additional_mail; }
But without success.
Any help would be appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Contact form 7 send me a copy multilingual’ is closed to new replies.