Codeinwp / wp-maintenance-mode

Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
https://wordpress.org/plugins/wp-maintenance-mode/
159 stars 82 forks source link

WP-CLI command #205

Open georgejipa opened 5 years ago

georgejipa commented 5 years ago

Would be nice to have a custom WP-CLI command to activate/deactivate the maintenance mode.

wp mm activate
wp mm deactivate
actionm commented 4 years ago

Activation wp option patch update wpmm_settings general status 1

Deactivation: wp option patch update wpmm_settings general status 0

Options list: wp option get wpmm_settings