Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //activating blackout
- function black_out() {
- if ( get_current_user_id() != 1 ) {
- wp_die ('Maintanance Going on...' );
- }
- }
- add_action( 'admin_init', 'black_out' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement