Remove “Protected:” from Password Protected Post in WordPress

remove protected from password protected post wordpress
How to remove “Protected:” from password protected post in WordPress

To remove the “Protected:” text from your password protected WordPress posts, just add this to your theme’s functions.php file:

function remove_protected_text() {
    return '%s';
add_filter( 'protected_title_format', 'remove_protected_text' );

Also make sure to check out How to Change “The content is password protected. To view it please enter your password.” in Divi to further update your Divi password protected posts.

Is this helpful?

Posted in

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress developer, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and them to and

Follow Toby's contributions on Github and