function wp_maintenance_mode() {
if (!current_user_can(‘edit_themes’) || !is_user_logged_in()) {
wp_die(‘
.
’);
}
}
add_action(‘get_header’, ‘wp_maintenance_mode’);
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/pluggable.php on line 1335
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/pluggable.php on line 1338