Created
August 15, 2017 11:25
-
-
Save Shininglow/1816ad278fd3e253f296dab07f0affe1 to your computer and use it in GitHub Desktop.
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
/** | |
* Removes or edits the 'Protected:' part from posts titles | |
*/ | |
add_filter( 'protected_title_format', 'remove_protected_text' ); | |
function remove_protected_text() { | |
return __('Custom Text: %s'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment