Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function cwc_maintenance_mode() {
- if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
- wp_die('Maintenance, please come back soon.');
- }
- }
- add_action('get_header', 'cwc_maintenance_mode');
Add Comment
Please, Sign In to add comment