Viewing 3 replies - 1 through 3 (of 3 total)
  • Nothing like that as far as I can remember.
    Don’t let people you don’t trust to join 🙂

    found this on the MU forum, don’t know if it would require tweaking or not

    <?php
    /*
    Plugin Name: Fix bad words.
    */
    
    function fix_bad_words($text) {
        $bad_words = array(
            'bad' => "%#$!%$",
            'bad word' => "%#$!%$",
            'worse word' => "%#$!%$",
            'very bad word' => "%#$!%$",
            'much more badder word' => "%#$!%$",
            'anything' => "%#$!%$",
            'really' => "%#$!%$",
        );
            foreach ($bad_words as $bad_word => $fix)
            $text = str_replace($bad_word, $fix, $text);
        return $text;
    }
    add_filter('the_title', 'fix_bad_words');
    add_filter('the_content', 'fix_bad_words');
    add_filter('comment_text', 'fix_bad_words');
    ?>
    Thread Starter MrBig

    (@mrbig)

    moshu – 🙂 i guess that’s true.

    thanks 4k 🙂 ill try it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A wordpress text censorship plugin’ is closed to new replies.