I used the following function to remove the ‘Protected:’ part from posts’ titles and to add a lock icon instead:
add_filter( ‘protected_title_format’, ‘remove_protected_text’ );
function remove_protected_text() {
return __(‘ %s’);
}
But this seems to remove the text that’s displayed on hover in Previous / Next arrows on the portfolio item page
How can I fix this?
Thanks!
Hey sdim,
Thanks for your question, try using a lock emoji like this:
add_filter( 'protected_title_format', 'remove_protected_text' );
function remove_protected_text() {
return __('🔒%s');
}
Best regards,
Mike