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);
})
;
This should basically do the job.