Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wordpress Wartungsmodus aktivieren
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