Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Contact Form 7 bundles translations for a lot of languages. So, first create a new contact form in your language, then copy & paste its Mail (2) content to your original contact form. You can do it without a help of any multilingual plugin.

    Thread Starter windomearle

    (@windomearle)

    Hi Takayuki,

    The English version of Send me a copy of message worked just once. Now it doesn’t work anymore. When I add the code to functions.php file I cannot access to the wp anymore.. So I’ve to delete the code to get the wp working again..

    Regarding your answer I did create 2 forms in the desired languages. I also filled the Mail(2) content. I used Polylang not to create the forms, but to the website pages, I mean to have a version of each page in the other two languages.

    Thanks.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    When I add the code to functions.php file I cannot access to the wp anymore..

    This indicates there are errors in the code you have added to the functions.php. Make sure all codes are correct.

    Thread Starter windomearle

    (@windomearle)

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to implement a Send me a copy of message in another languages’ is closed to new replies.