Last active
November 30, 2015 15:55
-
-
Save jpmarchand/3460175e571da76387d5 to your computer and use it in GitHub Desktop.
Remove the word "Private" from private post titles. Source: https://codex.wordpress.org/Plugin_API/Filter_Reference/private_title_format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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