WordPress.org

Support

Support » Miscellaneous » Filtering Bilingual content through Contact Form 7

Filtering Bilingual content through Contact Form 7

  • Hi

    I need to filter the contact form 7 forms (the saved contact forms that are in teh WP database) through a language filter function for a bilingual WP site.

    I have this working for the other plugins on the site but can’t get it to work on this plugin.

    The code looks like this in another plugin:

    // Ollie – Bilingual integ
    if(function_exists(‘apply_filters’)) {
    $keywords = apply_filters(‘the_keywords’, $keywords);
    }

    Do you know where I should put this code in the wp-contact-form-7.php? I’ve tried it in a bunch of places but it is not filtering the content. The page this is on is at http://www.goodlifecoaching.ie/contact-us/, you can see the unfiltered code there on that page with the language tags not being filtered out.

    Thanks
    Ollie.

Viewing 1 replies (of 1 total)
  • Takayuki Miyoshi
    Participant

    @takayukister

    It shouldn’t work because the filter ‘the_keywords’ is not supported as it’s not standard.

    You don’t have to put that code in order to get the interface translated. See FAQ.

Viewing 1 replies (of 1 total)
  • The topic ‘Filtering Bilingual content through Contact Form 7’ is closed to new replies.