Define a master post password that works for all passworded posts, while permitting the original post passwords to also work.
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
/wp-content/plugins/
).C2C_MASTER_POST_PASSWORD
constant. This also serves to prevent the admin option from being displayed.Yes.
Yes. A visitor can supply either the post’s password or the master post password to access the content.
No. It only affects posts that already have a post password.
No. Any explicitly set post password remains unchanged and functional. The master post password is saved separately from posts.
No, if you provide the master post password for one post, it’ll automatically be applied to all passworded posts until the site’s browser cookies expire.
Other than the obvious (the master post password has a new value), all existing users of the old master post password will expire when a browser attempts to view a passworded post. The visitor will have to provide the original post password(s) or the new master post password. If a visitor accessed a passworded post using the post’s explicitly set post password, then they will not be affected by a master post password change.
No. As is the case for post passwords in WordPress, the master post password is stored in the database as plaintext. That is, unless the master post password is set by a constant, in which case it is never stored in the database and only in the given .php file (typically wp-config.php, where other site passwords are defined).
Are you logged in as an administrative user who can access the “Settings” -> “Reading” admin page? Is the plugin installed and activated?
Assuming those are true, have you set a master post password via the C2C_MASTER_POST_PASSWORD
constant? If so, the admin setting will not be displayed.
Yes.
Yes.
Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.
phpunit/
into tests/
phpunit/bin
into tests/
Full changelog is available in CHANGELOG.md.