Advertisement
Guest User

redirect

a guest
Jan 2nd, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function bp_guest_redirect() {
  2. global $bp;
  3. if ( !bp_is_page( om ) ) { // enter the slug or component conditional here
  4. if(!is_user_logged_in()) { // not logged in user
  5. wp_redirect( get_option('siteurl') . '/om' ); // user will be redirect to any link to want
  6. }
  7. }
  8. }
  9. add_filter('get_header','bp_guest_redirect',1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement