{"id":7613,"date":"2026-04-24T23:52:00","date_gmt":"2026-04-24T18:22:00","guid":{"rendered":"https:\/\/themehunk.com\/?post_type=docs&#038;p=7613"},"modified":"2026-05-02T11:53:02","modified_gmt":"2026-05-02T06:23:02","slug":"removechange-protected-prefix-password-protected-posts","status":"publish","type":"docs","link":"https:\/\/themehunk.com\/fr\/docs\/removechange-protected-prefix-password-protected-posts\/","title":{"rendered":"Remove\/change \u201cProtected:\u201d prefix for password protected post"},"content":{"rendered":"<section class=\"wp-block-group password-protected has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">WordPress Remove Protected from Title<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As you already know about the Password protected setting for your post or page. When your post or page is protected it will show &#8220;Protected&#8221; prefix before its title. If you want to change or remove that prefix just follow the below steps :-<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First go with <strong>WordPress Dashboard &gt;Appearance &gt;Editor section<\/strong>.<\/li>\n\n\n\n<li>In editor section there is a functions.php file of your theme. In this file add the following code at the end of the file :<code>\/**<br>* Removes or edits the 'Protected:' part from posts titles<br>*\/<br>add_filter( 'protected_title_format', 'remove_protected_text' );<br>function remove_protected_text() {<br>return __('Protected: %s');<br>}<\/code><br><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"808\" height=\"425\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2016\/12\/12-22-2016-6-14-14-AM.png?resize=808%2C425&#038;ssl=1\" alt=\"12-22-2016-6-14-14-am\"><br>By this you can change or remove the \u201cProtected:\u201d text if needed. Save your changes and see that changes on your page or post.<\/li>\n\n\n\n<li>Once you checked your prefix is changed now you can remove it completely again go to your editor and add this code :<code>\/**<br>* Removes or edits the 'Protected:' part from posts titles<br>*\/<br>add_filter( 'protected_title_format', 'remove_protected_text' );<br>function remove_protected_text() {<br>return __('%s');<br>}<\/code><br><img data-recalc-dims=\"1\" decoding=\"async\" width=\"857\" height=\"447\" src=\"https:\/\/i0.wp.com\/themehunk.com\/wp-content\/uploads\/2016\/12\/12-22-2016-6-12-47-AM.png?resize=857%2C447&#038;ssl=1\" alt=\"password protected\"><br>Now Save changes and check the page once again.The prefix was removed and post\u2019s title does not differ from the others now.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Hope this will help you. For more information you can contact our support team at <a href=\"https:\/\/themehunk.com\/fr\/support\/\" target=\"_blank\" rel=\"noreferrer noopener\">support forum<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-themehunk wp-block-embed-themehunk\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"2z2zrU6oMn\"><a href=\"https:\/\/themehunk.com\/fr\/docs\/make-wordpress-pagepost-password-protected\/\">Make your WordPress page\/post Password protected<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Make your WordPress page\/post Password protected&#8221; &#8212; ThemeHunk - Premium WordPress Theme &amp; Plugins Shop\" src=\"https:\/\/themehunk.com\/docs\/make-wordpress-pagepost-password-protected\/embed\/#?secret=OXwfdp5if5#?secret=2z2zrU6oMn\" data-secret=\"2z2zrU6oMn\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>WordPress Remove Protected from Title As you already know about the Password protected setting for your post or page. When your post or page is protected it will show &#8220;Protected&#8221; prefix before its title. If you want to change or remove that prefix just follow the below steps :- Hope this will help you. For [&hellip;]<\/p>\n","protected":false},"author":9313,"featured_media":0,"template":"","meta":{"footnotes":""},"class_list":["post-7613","docs","type-docs","status-publish","hentry","docscate-custom-code","docstag-remove-change-protected-prefix-for-password-protected-post","docstag-wordpress"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/docs\/7613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/users\/9313"}],"version-history":[{"count":5,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/docs\/7613\/revisions"}],"predecessor-version":[{"id":101485,"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/docs\/7613\/revisions\/101485"}],"wp:attachment":[{"href":"https:\/\/themehunk.com\/fr\/wp-json\/wp\/v2\/media?parent=7613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}