Filter and replace strings from the Title, Content and Comments automatically.
If you want to replace the output string paste this code in your functions.php file
1 2 3 4 5 6 7 8 9 10 |
function word_filter($content) { $str = "QUICOTO"; //look for string $newstr = "quicoto"; //new string $html = str_replace($str, $newstr, $content); return $html; } add_filter('the_title', 'word_filter',1); //Repalce the string in the Title add_filter('the_content', 'word_filter',1); //Repalce the string in the Content add_filter('comment_text', 'word_filter',1); //Repalce the string in the Comments |