Home » WooCommerce: Custom Registration Redirect @ My Account

WooCommerce: Custom Registration Redirect @ My Account

by Tutor Aspire

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 tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 6
 * @donate $9     https://www.tutoraspire.com
 */

add_filter( 'woocommerce_registration_redirect', 'tutoraspire_customer_register_redirect' );

function tutoraspire_customer_register_redirect( $redirect_url ) {
$redirect_url = '/shop';  
return $redirect_url;
}

You may also like