Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,047
- How-to & Troubleshooting
- 129,804
- Creating & Extending
- 25,879
- Requests & Feedback
- 9,501
- Third Party Plugins
- 9,814
- Showcase
- 3,317
- Ideas
- 1,384
- Miscellaneous
- 9,182
-
@sbrajesh the following function suits purpose #2 just fine. I think the var $user_url which seems tied to the main site url is safe enough (untested for sure). fingers crossed.
function bn_loggedin_user_domain() {
global $bp;
return $bp->loggedin_user->userdata->user_url;
}
add_filter(‘bp_loggedin_user_domain’,’bn_loggedin_user_domain’);