Change Private Posts Prefix

If you’ve marked a post as “Private” it is automatically prefixed with “Private: ”

You may not like that. Here’s how you can change it:

add_filter('private_title_format', 'change_private_title_format');
function change_private_title_format() {
	return 'Top Secret: %s';

One thought on “Change Private Posts Prefix”

Leave a Reply

Your email address will not be published. Required fields are marked *