// Activate WordPress Maintenance Mode function wp_maintenance_mode(){ if(!current_user_can('edit_themes') || !is_user_logged_in()){ wp_die('

Website under Maintenance


We are performing scheduled maintenance. We will be back on-line shortly!'); } } add_action('get_header', 'wp_maintenance_mode');