function zm_maintenancemode() { if ( !current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) { Wp_die ('Please wait while the website is being maintained! '); exit; } } add_action('get_header', 'zm_maintenancemode');
function zm_maintenancemode() { if ( !current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) { Wp_die ('Please wait while the website is being maintained! '); exit; } } add_action('get_header', 'zm_maintenancemode');