Redirect User Profile to Custom Registration Page

If you’ve built a custom Registration Page with a form that is gathering all of your customer’s information, the default WordPress Register link, has become null and void.

You can redirect the default url http://yourwebsite.com/wp-login?action=register to your custom page using a simple function:

// 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')); // your registration page slug
	}
}
 
add_filter( 'init', 'my_registration_page_redirect' );

Sourced here.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.