word filter
-
I’m calling it decurser π it generally filters out bad words.
Installation
1. Download decurser.zip.
2. Uploaddecurser.php
. Make sure it’s in the same folder as my-hacks.php
3. Add the following lines to my-hacks.php:
require_once ‘decurser.php’;
// filter the posts
add_filter(‘the_content’,’decurser’);
// filter the comments
add_filter(‘comment_text’,’decurser’);Done!
You can configure the words to be filtered in decurser.php and also the filter character. Tell me if there’s any bugs or anything that you might want to add π
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘word filter’ is closed to new replies.