lukasjuhas / lj-maintenance-mode

Simple maintenance mode wordpress plugin.

Home Page:https://plugins.itsluk.as/maintenance-mode/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WP-CLI support

lukasjuhas opened this issue · comments

Jerry Hudgins (@laureldigital)
This is a very useful plugin; thanks for your work on it.

I’d like to suggest a small feature enhancement to make it even more useful: simple enable/disable support via WP-CLI command. This would permit temporary lockout of new user-generated content or E-commerce transactions during cron-driven scripted operations such as backup or content import.

There's a useful example of an implementation of this feature for the WP Maintenance Mode plugin here on GitHub. An implementation for your own plugin could be somewhat simpler, I'd think.