Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Dev Vip is in the house making a few edits
- // Activate WordPress Maintenance Mode
- function wp_maintenance_mode(){
- if(!current_user_can('edit_themes') || !is_user_logged_in()){
- wp_die('<h1 style="color:blue">We'll be Back in 5 <br /> Thanks ');
- }
- }
- add_action('get_header', 'wp_maintenance_mode');
- // wrap it back up when your done using /* before and */ after
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement