Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,869
- Creating & Extending
- 25,895
- Requests & Feedback
- 9,546
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
@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’);