Paste this code in your bp-custom.php
file or, if you prefer, your active theme’s functions.php
file:
add_action( 'bp_core_activated_user', 'wpse_70289_activated_user_redirect' ); function wpse_70289_activated_user_redirect( $user_id ) { $registered_from = get_user_meta( $user_id, 'registered_from', true ); wp_redirect( $registered_from ); }
I haven’t tested this code myself yet, but it should work just fine.
References:
Related Posts:
- redirect user to their profile after log in
- Send activation email to user after signup [duplicate]
- BuddyPress | Check if user is in current group [closed]
- Redirecting user after updating profile?
- Redirect User to Homepage if no other redirect is specified
- Buddypress – Send New User Activation Link to Admin [closed]
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Redirect after users complete profile form
- Redirect users based on custom field
- Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file
- how to make a profile entry read only except for site managers [closed]
- Forcing WordPress to work differently
- Redirect user to login before viewing custom post
- Redirect subscribers to last viewed page after log-in
- Redirect user after successful email change
- WP_User_List -> How to open a new edit-page in WordPress admin backend!
- How to stop redirect if user is already on correct page (Using Case Switch)
- WP not logging in at first time
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- How can I do a url redirect to include a wordpress username?
- How to display text if profile fields are not filled?
- Redirect logged on user to a specific page based on wp user role, page id
- Redirect users after login
- Redirect user to login if not logged in, on specific pages
- Change user slug in Buddypress
- WordPress Redirect Specific User. Tired of Peter’s redirect Plugin its not working
- Redirect current user to their most recent custom post
- how redirect users to custom login page when “login to reply” is clicked? [duplicate]
- wp_delete_user – huge overhead in Buddypress?
- How to remember which page the user was on before logout?
- Redirect /member/ to /member/user
- Specific Content on pages based on user
- Redirect current user
- Users set passwords but cannot login
- Resend user activation mail
- Set user role on registration so can upload file to own media library area
- Does WordPress Need BuddyPress to Handle Large Amounts of Users?
- Redirect based on log-in status per JavaScript
- Buddypress – New user type with no profile and can’t interact but can be admin of a group
- Redirect user based on role when they try access a particular page
- Buddypress: “Auto load” specific usermeta in WP?
- Default Usermeta Entries for every newly created user?
- If the current user is an administrator or editor
- Editor can create any new user except administrator
- How do I add a field on the Users profile? For example, country, age etc
- How do I display logged-in username IF logged-in?
- Admin Page Redirect
- How to allow an user role to create a new user under a role which lower than his level only?
- user_login vs. user_nicename
- How to programatically change username (user_login)?
- Change the Author Slug from Username to Nickname
- Remove Ability for Other Users to View Administrator in User List?
- Difference between update_user_meta and update_user_option
- Make display name unique
- Make WooCommerce pages accessible for logged in users only
- Find out if logged in user is not subscriber
- WordPress usermeta scaling for thousands of users
- How to get WordPress Username in Array format
- Display user registration date
- Get multiple roles with get_users
- get_user_meta() doesn’t include user email?
- Confirmation required on email change
- How to Merge Two Authors Into One?
- Whats the best way to share user data across multiple WordPress websites?
- get_current_user_id() returns 0?
- How to get userid at wp_logout action hook?
- Groups of capabilities: users with multiple roles?
- Is there a way to merge two users?
- User-edit role setting distinct from wp_capabilities? [closed]
- List users by last name in WP_User_Query
- What’s the difference between the capability remove_users and delete_users?
- How to restrict access to uploaded files?
- Automatically delete inactive users after 2 months
- How to change user_login with wp-cli?
- Delete all subscribers from wp_users and wp_usermeta a few thousand at a time
- Email user when password is reset by admin
- Replacing the WordPress password validation
- Ban a user and end their session
- Allowing users to edit only their page and nobody else’s
- How can 2 blogs share the same users
- alphabetically order role drop-down selection in dashboard
- WordPress auto login after registration not working
- Change the author slug from nickname to ID
- Execute a function when admin changes the user role
- How to let contributors to create a new revision(draft) editing their published posts
- how to use joomla password format in wordpress?
- How to do get_users() with multiple meta_keys
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- What the user_status column?
- How to limit users to one comment per post
- Different back-end language for different users?
- Hide Admin Menu for Specific User ID who has administrator Role
- Migrating WordPress users into Disqus
- Problem with Hebrew characters in username
- How to Modify/Change a Buddypress/WordPress Account Activation Process
- Is there an upper limit for users in WP?
- How to display the status of users (online – offline) in archive.php
- Remove email verification when new user register
- How to change user`s avatar?
- How to set up User email verification after Signup?