Created
July 26, 2021 22:39
-
-
Save abdullahkitr0/2e8685a14cf69ce8f1e9079ba52e08a4 to your computer and use it in GitHub Desktop.
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
// Activate WordPress Maintenance Mode | |
function wp_maintenance_mode() { | |
if (!current_user_can('edit_themes') || !is_user_logged_in()) { | |
wp_die('<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later.'); | |
} | |
} | |
add_action('get_header', 'wp_maintenance_mode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
En Popüler WordPress Bakım Modu Eklentileri bu bakım modu eklentileri sayesinde sitenizi bakım moduna hızlı ve güzel bir şekilde alabileceksiniz.