How do I filter single_cat_title to remove all instances of a particlular word

Posted on March 11th, 2011

There is a filter with the same name (single_cat_title) you can make use of to replace a particular word all the time:

add_filter(‘single_cat_title’, function($title) {
return str_replace(‘word to replace’, ”, $title);
})
;