Filters whether to enable maintenance mode.
Description
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.
Parameters
$enable_checks
bool- Whether to enable maintenance mode. Default true.
$upgrading
int- The timestamp set in the .maintenance file.
Source
if ( ! apply_filters( 'enable_maintenance_mode', true, $upgrading ) ) {
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.