BuddyDev

Redirect users to Welcome page after successful registration on your BuddyPress based Social Network

Today, Angus asked me this question via mail. He wanted to redirect users to a thank you page after successful registration on the BuddyPress site. This post will help you if you are looking for the same.

On a BuddyPress site, when a new user registers, and if the registration is successful, they are shown the text( I haven't seen many people modifying that text ) as below.

You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.

Now, you can either modify that content by editing register.php file or a better option is to redirect them to another page where you can put all the information for them to get started with your site.

In the code below, I am redirecting user to a site.com/welcome page on successful registration, you can  change that to any other page.

Please put the code in your bp-custom.php and make sure to create a page with the slug 'welcome' or whatever page slug you have changed.

After that, try registering a new account and you will see the magic.

Hope this little snippet helps you 🙂

6 Responses to Redirect users to Welcome page after successful registration on your BuddyPress based Social Network