Created
November 14, 2017 01:37
-
-
Save radarin/75e94c5fda2b5255d7ca1508522bcb43 to your computer and use it in GitHub Desktop.
Wordpress Wartungsmodus aktivieren
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
function wpr_maintenance_mode() { | |
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) { | |
wp_die('Kurzer Unterbruch in Folge Wartungsarbeiten, versuchen Sie es in Kürze wieder.'); | |
} | |
} | |
add_action('get_header', 'wpr_maintenance_mode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment