Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove the word "Private" from private post titles. Source: https://codex.wordpress.org/Plugin_API/Filter_Reference/private_title_format
<?php
//* Remove the word "Private:" from private post titles
function prefix_remove_private_from_post_titles($title) {
return '%s';
}
add_filter('private_title_format', 'prefix_remove_private_from_post_titles');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.