enable_maintenance_mode

enable_maintenance_mode

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('enable_maintenance_mode') is found 1 times:

  • /wp-includes/load.php line 446
    	 *
    	 * @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;
    }