Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpse101952_redirect()
- {
- global $post;
- if( !current_user_can('administrator'))
- {
- wp_redirect( 'http://test.com/comingsoon.html');
- exit();
- }
- }
- add_action( 'template_redirect', 'wpse101952_redirect' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement