Filtering Bilingual content through Contact Form 7 (2 posts)

  1. nimble75
    Posted 7 years ago #


    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.


  2. Takayuki Miyoshi
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic