Summery Summery

Filters whether to enable maintenance mode.

Syntax Syntax

apply_filters( 'enable_maintenance_mode', bool $enable_checks, int $upgrading )

Description 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 Parameters


(bool) Whether to enable maintenance mode. Default true.


(int) The timestamp set in the .maintenance file.

Source Source

File: wp-includes/load.php


Changelog Changelog

Version Description
4.6.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?