跳到内容

Master Post Password

v1.4

Scott Reilly · 2013年11月26日 上架

Define a master post password that works for all passworded posts, while permitting the original post passwords to also work.

正在使用
50+
评分
5.0 / 5
累计下载
8,450
最近更新
2025年4月25日
4 条评价需要 WordPress 4.7+已测试到 6.8.13

贡献者

截图

A screenshot of the Settings -> Reading admin page showing the "Master Post Password" input field.
A screenshot of the Settings -> Reading admin page showing the "Master Post Password" input field.

Define a master post password that works for all passworded posts, while permitting the original post passwords to also work.

Once the master post password has been provided by a visitor for any passworded post on the site, it applies to unlock all other passworded posts (without needing to provide the master post password again for each such post) until the site’s cookies expire in the browser.

There are two means by which the master post password can be defined:

a.) As a constant, C2C_MASTER_POST_PASSWORD. This is typically done in wp-config.php like so:

define( 'C2C_MASTER_POST_PASSWORD', 'your_master_post_password' );

b.) Via the settings field labeled “Master Post Password” found on the Settings -> Reading admin page.

If the constant is defined, it takes precedence and the settings field is NOT displayed.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Plums

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

导航

说明

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

© 2026 Plums