WPForms Blog

WordPress Tutorials, Tips, and Resources to Help Grow Your Business

How to Set Up WordPress Registration Redirects (Complete Guide)

by Shahzad Saeed on Dec 7, 2017

Do you want to set up WordPress registration redirects on your site? Maybe you want to thank your users for registering with your site or you want them to automatically log in upon registering.

Whatever your goals, it’s easy to set up redirection after registering with your WordPress site. In this article, we’ll show you how to set up WordPress registration redirects, step by step.

Create a Custom Registration Form

Creating a custom registration form is essential for you if you run a community-powered site, like membership site, eCommerce, forums, niche social network or any other sites that require users to register an account.

Creating a custom registration form will give your site a more professional appearance by displaying a consistent brand.

The easiest way to create a custom registration form on your WordPress site is by using WPForms. With its User Registration addon, you create a custom registration form, connect it with your newsletter and even collect payments while registering.

With WPForms, you can either require a user to confirm their profile by clicking a link in their email, or you can require a manual approval process where an administrator must approve each account.

For more details, you can read about creating a registration form with WPForms.

Redirect Users to the Custom Registration Page

Now that you’ve created a page with custom registration form on your site, you might redirect all your users to this page when they try to access the default registration page. Unless you set this redirection, your users can access the default WordPress registration page on your site by visiting this URL: http://example.com/wp-login?action=register

The default registration form might also attract spam user registration. Plus, if you want to get some additional information from your users before providing access to your WordPress dashboard, you must disable access to the default registration page.

To enable this redirection, all you need to do is to add the following code snippet to your functions.php file. This code snippet redirects your users to the custom registration page with the URL slug /registration-url when they try to access the default registration page.

If you’re not sure how to add the code, see this guide on how to paste code snippets into your functions.php file to prevent any WordPress errors.

// Redirect Registration Page
function my_registration_page_redirect()
	global $pagenow;

	if ( ( strtolower($pagenow) == 'wp-login.php') && ( strtolower( $_GET['action']) == 'register' ) ) {
		wp_redirect( home_url('/registration-url'));

add_filter( 'init', 'my_registration_page_redirect' );

Code credits: 2bearstudio

Redirect to a Thank You Page After Registration

Now that you have a custom registration form created, you might want to redirect users to a thank you page after registration.

Having a thank you page enables you to thank your users for registering with your site. Aside from that, you can onboard new users and explain what to do next on their first visit. For example, ecommerce sites can show a list of popular product categories and encourage users to shop. Similarly, forums can redirect newly registered users to a thread that explains rules and regulations of creating a new thread.

To redirect users upon registration, you may use the Peter’s Login Redirect plugin. After installing and activating the plugin, visit Settings » Login/logout Redirects, and then scroll down the page until you find Post-registration. Then, specify the thank you page URL, and click Update.

post registration login logout redirects

Auto-Login After Registration

If you’re not fond of redirecting users to a thank you page after registration, you can try enabling auto-login. By enabling auto-login, you can make your users engaged with your site immediately after creating an account.

If a user is in the process of filling an immediate need, like purchasing merchandise they found while browsing through your ecommerce site, auto-login makes it convenient to do just that immediately.

To enable auto-login on your site, you can use the Auto Login After Registration plugin. After activating the plugin, go to the Auto Login after Register page and select enable next to Enable/disable auto login after registration.

auto login after registration

That’s it!

We hope this guide helped you set up WordPress registration redirects on your site.

If you enjoyed this article, you might also want to try these WordPress hacks to customize your login page.

What are you waiting for? Get started with the most powerful WordPress forms plugin today.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.


  1. Thanks for reading this article – I hope you found it helpful.

    I wanted to let you know about our new WordPress survey plugin that allows you to build interactive polls and surveys within minutes. You also get best-in-class reporting, so you can make data-driven decisions.

    You can get it 100% free when you purchase WPForms Pro plan.

    Get Started with WPForms Today and see why over 1 million websites choose WPForms as their preferred online form builder.

    Syed Balkhi
    CEO of WPForms

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.