// Aktiviere den WordPress-Wartungsmodus
function activate_maintenance_mode() {
if (!current_user_can(‘edit_themes’) || !is_user_logged_in()) {
wp_die(‘
Wartungsarbeiten
Website unter geplanter Wartung. Bitte schau später wieder vorbei.’);
}
}
add_action(‘get_header’, ‘activate_maintenance_mode’);
Warning: Cannot modify header information - headers already sent by (output started at /homepages/18/d629242410/htdocs/wp-content/themes/Avada-Child-Theme/functions.php:1) in /homepages/18/d629242410/htdocs/wp-includes/pluggable.php on line 1331
Warning: Cannot modify header information - headers already sent by (output started at /homepages/18/d629242410/htdocs/wp-content/themes/Avada-Child-Theme/functions.php:1) in /homepages/18/d629242410/htdocs/wp-includes/pluggable.php on line 1334