Menu Close

WooCommerce: Custom Registration Redirect @ My Account

default

The WooCommerce My Account register form (when enabled) redirects to… itself once a WooCommerce customer registers. So, what if you want to redirect newly registered users to another page?

Also, when you have a custom Registration page, you may need to redirect users to the… My Account page!

Either way, here’s how to change the default redirect behavior. Enjoy!

Whether you use the default WooCommerce My Account page or a different one for customer registration, here’s how to define a custom redirection URL upon sign up.

PHP Snippet: Redirect Registered Customers to Custom URL @ My Account Page

/**
 * @snippet       Custom Redirect for Registrations @ WooCommerce My Account
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

add_filter( 'woocommerce_registration_redirect', 'bbloomer_customer_register_redirect' );

function bbloomer_customer_register_redirect( $redirect_url ) {
	$redirect_url = '/shop';  
	return $redirect_url;
}
View Source
Posted in WooCommerce Tips