Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,869
- Creating & Extending
- 25,901
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
afaik, when that hook runs, the user is not logged in yet. Try using a login hook, like login_redirect.
btw – try to use BP functions, especially if you plan to distribute your code.
wp_redirect( bp_loggedin_user_domain() . '/profile/edit/group/1/' );
The default component constant applies to all visitors. Visitors and other members cannot edit the profile fields of another user.