跳到内容

Advanced Post Password

v1.2

Chema · 2022年1月27日 上架

Remembers the password of your protected posts, lets administrators skip it and can hide the "Protected" prefix.

正在使用
10 以下
评分
暂无
累计下载
2,192
最近更新
2026年11月19日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

WordPress asks for the password of a protected post every time the cookie of that post is not there, and every protected post has its own password. Advanced Post Password adds a few things on top of that behaviour, all optional:

The password is remembered per post. When a visitor types the password of a protected post, the plugin stores its own cookie for that post, separate from the WordPress one. The visitor can then browse that post and come back later without typing it again.

Administrators never see the password form. If you are logged in as an administrator, protected posts open directly, so you can check a draft or a client area without typing the password each time.

One master URL opens everything. Choose a URL and a password: whoever enters that password on that URL gets access to every protected post on the site, without typing the password of each one.

Cleaner titles. WordPress prepends “Protected:” and “Private:” to the titles of those posts. Two checkboxes remove those prefixes, on the site and in the browser tab.

How it works

The plugin listens to the standard password form of WordPress. When the form is submitted, it checks the password with the same hashing class WordPress uses and sets a cookie named after the post ID. On the next request, the post_password_required filter finds that cookie and skips the form.

The cookie is a hash, never the password in clear, and it expires after a year, the same way WordPress handles its own post password cookie. Cookies created by previous versions of the plugin are still accepted, so upgrading does not log anybody out.

Settings

Go to Settings > Post Password:

  • No admin password: administrators bypass the form on protected posts.
  • Removes protected prefix: hides “Protected:” from the titles.
  • Removes private prefix: hides “Private:” from the titles.
  • Master URL and Master URL password: the URL where the master password is accepted, and the password itself. Leave both empty to disable the feature.

The master URL should be a page that exists on your site, for example https://example.com/vip/. Visitors who open that page and enter the master password get access to every protected post.

Plums

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

导航

说明

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

© 2026 Plums