Activates, deactivates or checks the status of the maintenance mode of a site.
EXAMPLES EXAMPLES
# Activate Maintenance mode.
$ wp maintenance-mode activate
Enabling Maintenance mode...
Success: Activated Maintenance mode.
# Deactivate Maintenance mode.
$ wp maintenance-mode deactivate
Disabling Maintenance mode...
Success: Deactivated Maintenance mode.
# Display Maintenance mode status.
$ wp maintenance-mode status
Maintenance mode is active.
# Get Maintenance mode status for scripting purpose.
$ wp maintenance-mode is-active
$ echo $?
1
SUBCOMMANDS SUBCOMMANDS
Name | Description |
---|---|
wp maintenance-mode activate | Activates maintenance mode. |
wp maintenance-mode deactivate | Deactivates maintenance mode. |
wp maintenance-mode is-active | Detects maintenance mode status. |
wp maintenance-mode status | Displays maintenance mode status. |
Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.