跳到内容

Customize Private & Protected: Password Form & Prefix

v1.6.0

kirkclarke · 2021年8月31日 上架

Remove or change the "Protected:" and "Private:" title prefix. Customize the password form text, button, colors and widgets. Block themes too.

正在使用
400+
评分
4.7 / 5
累计下载
6,146
最近更新
2026年10月14日
3 条评价需要 WordPress 5.8+已测试到 7.1.5PHP 7.0+

贡献者

截图

Customize the title prefix, intro text, label, and button text from the Customizer, with a live preview.
Customize the title prefix, intro text, label, and button text from the Customizer, with a live preview.
Two widget areas — before and after the password form — show up under Appearance > Widgets.
Two widget areas — before and after the password form — show up under Appearance > Widgets.
Add any widgets you like to those areas.
Add any widgets you like to those areas.

Extends WordPress’s own built-in password-protected and private post/page settings — no second password system, no Pro tier, no upsells.

Title prefix

  • Hide the “Protected: ” / “Private: ” prefix WordPress adds to a password-protected or private post’s title
  • Or replace it with your own text

Password form

  • Rewrite the intro text, the password label, and the submit button text
  • Set the password field’s and submit button’s colors, and the button’s padding
  • Add widget areas before and after the form
  • Custom “Invalid password” text for a wrong attempt (WordPress 6.8+)
  • Custom excerpt text for protected posts in lists
  • Set how long the password cookie lasts, or make it a session-only cookie
  • Hide password-protected posts from your homepage, archives, search results, and feeds, while keeping them reachable at their own URL
  • Or keep your theme’s own password form (Divi supported) and just add the widget areas

Configure it through the Customizer (Appearance > Customize), which previews your changes as you type, or through Settings > Private & Protected, a plain settings page that works the same on every theme, block themes included. Both edit the same settings. Four options added in 1.6 (invalid password text, excerpt text, cookie lifetime, hide from lists) are on the settings page only.

Donations

If you’d like to support future development, buy me a tea!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums