Removing ‘Private’ from a title in WordPress

There are many ways to do this, however, my favorite is to add the following at the bottom of the functions.php file in WordPress:

<?php function bfa_remove_word_private($string) {     $string = str_ireplace(“private: “, “”, $string);     return $string; } add_filter(‘the_title’, ‘bfa_remove_word_private’); ?>

 

You may also like