Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_login_redirect($redirect_to,$redirect_to2,$user) {
- global $bp;
- $city = xprofile_get_field_data(26, $user->ID );
- if( !empty($city) )
- return 'YOUR WEBSITE URL';
- else
- return bp_core_get_user_domain($user->ID) . 'profile/edit/';
- }
- add_filter('login_redirect','my_login_redirect',100,3);
Advertisement
Add Comment
Please, Sign In to add comment