Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    Not sure what you mean exactly. Are you having an issue getting the plugin to work correctly? Could you elaborate a little please?

    Thread Starter deco2094

    (@deco2094)

    sorry, my english so bad. this plugin only replaces the English words?

    Plugin Author David Gwyer

    (@dgwyer)

    I haven’t tested it but it should remove words from the language set as the WordPress default. So, if your WordPress site is set to German language the plugin should remove those words. But as I said I haven’t tested it so I can’t guarantee it works.

    Thread Starter deco2094

    (@deco2094)

    need remove russians those words

    Hi David,

    This is exactly my concerns it only removes english words I want to remove the other language words also. Is there a way to do this, just to type the word in keyword textarea?

    Thanks,

    Plugin Author David Gwyer

    (@dgwyer)

    @tronix-ex #as mentioned above it should remove words from the language set as the WordPress default. So, if your WordPress site is set to German language the plugin should remove those words. Can you confirm this?

    As for supporting multiple languages I’m not sure this would work though, I’d have to look into it more.

    Hi David,

    Thanks for your response. I’ve found a wordpress function that fullfils my requirement as it removes all languages words.

    Thanks again,

    Plugin Author David Gwyer

    (@dgwyer)

    Out of curiosity which plugin did you end up using?

    Its a custom function actually not a specfic plugin.

    Plugin Author David Gwyer

    (@dgwyer)

    Would you be willing to share? If it’s something I can add to the plugin that would be great, and everyone would benefit.

    sure, why not, I’ve used the function for bbpress so I added the filter accordingly. Please see below

    function theContentFilter($content) {
      $badWords = array("anywords", "?????", "etc", "show-here");
      foreach($badWords as $badWord)
        $content = str_ireplace($badWord, theContentFilterBadWordSanitize($badWord), $content);
      return $content;
    }
    /**
     * @param $badWord
     * @return string
     */
    function theContentFilterBadWordSanitize($badWord) {
      $filterVariable = '*';
      $ret = '';
      for($i = 0; $i < strlen($badWord); $i++)
        $ret .= $filterVariable[rand(0, strlen($filterVariable) - 1)];
      return $ret;
    }
    add_filter("bbp_get_topic_content", 'theContentFilter', 10);
    add_filter("bbp_get_reply_content", 'theContentFilter', 10);
    Plugin Author David Gwyer

    (@dgwyer)

    Thanks!

    welcome

    Plugin Author David Gwyer

    (@dgwyer)

    Marking as resolved.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘removed only eng word?’ is closed to new replies.