<? if ( is_user_logged_in() ) { // 1233PM ?> <? wp_redirect( 'http://www.example.com'); exit; ?> <?php } // 1233PM end if user is not logged in ?>