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.
468*469* @since 4.6.0470*471* @param bool$enable_checks Whether to enable maintenance mode.Defaulttrue.472* @param int$upgrading The timestamp set in the .maintenance file.473*/474if(!apply_filters('enable_maintenance_mode',true,$upgrading)){475returnfalse;476}477478returntrue;479}480
History
Introduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.