Created
July 21, 2011 15:43
-
-
Save tlongren/1097467 to your computer and use it in GitHub Desktop.
Enable WordPress Maintenance Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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