Readonly for WordPress WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
WordPress plugin that provides WP-CLI commands to make it readonly
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/pivvenit/wordpress-readonly/archive/refs/heads/master.zipOn Packagist as pivvenit/wordpress-readonly:
composer require pivvenit/wordpress-readonlyA WordPress plugin that makes WordPress readonly. It's main use case is blue/green deployments, in which the active application slot requires a (short) readonly window to sync the database to the other slot.
Features:
WP-CLIcommands to enable and disable the readonly mode- Notify logged-in users (in the admin) of upcoming
readonlyphase using notification. - Disable login for all users during both
prepareandreadonlyphase. - Drop all
POSTrequests duringreadonlyphase with a503 Service Unavailable. - Refreshes admin pages for logged-in users once readonly mode is disabled.
Installation
This plugin is designed for WordPress websites that use Composer, such as Bedrock.
composer require pivvenit/wordpress-readonly
Usage
Enable readonly mode
./vendor/bin/wp readonly enable
Disable readonly mode
./vendor/bin/wp readonly disableReleases
5 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.