Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable WordPress Maintenance Mode
// Enable maintenance mode
add_action('get_header', 'html5press_maintenance_mode');
function html5press_maintenance_mode() {
wp_die('Maintenance, please come back soon.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment