MaintenanceCommand final class
Minn\Cli\MaintenanceCommand · public/minn/src/Minn/Cli/MaintenanceCommand.php · 65 lines
`wp maintenance-mode`: the `.maintenance` marker in the webroot. The engine does not take the public site down while the file is present; fleet scripts still need the verb to succeed so an update can bookend itself with activate/deactivate.
Public
| method | activate(array $args, array $assocArgs): void# | Activates maintenance mode. |
| method | deactivate(array $args, array $assocArgs): void# | Deactivates maintenance mode. |
| method | status(array $args, array $assocArgs): void# | Displays maintenance mode status. |
| method | is_active(array $args, array $assocArgs): void# | Detects maintenance mode status. Exit 0 when active, 1 when not. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | file(): string# |
Nothing matches.