Activating Maintenance Mode
Soft Maintenance
Soft maintenance disables the store for visitors but allows administrators to work on it.
To activate or deactivate run the WP-CLI command:
wp wcd soft_maintenance activate
wp wcd soft_maintenance deactivate
Click restart PHP workers in WP-CLI for the changes to take effect.
WordPress Maintenance Mode
To prevent any activity on the store, including admin logins, use the WordPress built-in maintenance mode. This creates a .maintenance
file in the root of the store which activates the maintenance mode.
To activate or deactivate run:
wp maintenance-mode activate
wp maintenance-mode deactivate
For status, run:
wp maintenance-mode status
Click restart PHP workers in WP-CLI for the changes to make effect.