I'm currently using Sage 8.5.1 theme and have some password protected pages. The client would like to have the word "Protected" removed but not the title. I've used this code snippet
add_filter( 'protected_title_format', 'remove_protected_text' );
function remove_protected_text() {
return __('%s');
}
But it removes the title also. I've looked and everywhere seems to use basically the same snippet of code. I've posed this question on Roots Discourse and they said it's not theme specific and to post my question here. Thanks