Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

windomearle on "[Plugin: Contact Form 7] how to implement a Send me a copy of message in another languages"

$
0
0

I am using your code on functions.php

add_filter( 'wpcf7_additional_mail', 'my_wpcf7_use_mail_2_or_not', 10, 2 );

function my_wpcf7_use_mail_2_or_not( $additional_mail, $cf ) {
	if ( "Send me a copy of this message" != $cf->posted_data['send_c'][0] )
		$additional_mail = array();

	return $additional_mail;
}

also I added the following in each form:

[checkbox send_c default:0 "Send me a copy of this message"]


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>