Description
Filters whether to enable maintenance mode. This filter runs before it can be used by plugins. It is designed for non-web runtimes. If this filter returns true, maintenance mode will be active and the request will end. If false, the request will be allowed to continue processing even if maintenance mode should be active.
Occurrences
Filename | Line Number |
---|---|
wp-includes/load.php | 446 |
Parameters
Type | Name | Description |
---|---|---|
bool | $enable_checks | Whether to enable maintenance mode. Default true. |
int | $upgrading | The timestamp set in the .maintenance file. |
PHP Doc
/**
* Filters whether to enable maintenance mode.
*
* This filter runs before it can be used by plugins. It is designed for
* non-web runtimes. If this filter returns true, maintenance mode will be
* active and the request will end. If false, the request will be allowed to
* continue processing even if maintenance mode should be active.
*
* @since 4.6.0
*
* @param bool $enable_checks Whether to enable maintenance mode. Default true.
* @param int $upgrading The timestamp set in the .maintenance file.
*/