enable_maintenance_mode

enable_maintenance_mode

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('enable_maintenance_mode') is found 1 times:

  • /wp-includes/load.php line 446
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
         *
         * @param bool $enable_checks Whether to enable maintenance mode. Default true.
         * @param int  $upgrading     The timestamp set in the .maintenance file.
         */
        if ( ! apply_filters( 'enable_maintenance_mode', true, $upgrading ) ) {
            return false;
        }
     
        return true;
    }