49
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!
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://tutoraspire.com
*/
add_filter( 'woocommerce_registration_redirect', 'tutoraspire_customer_register_redirect' );
function tutoraspire_customer_register_redirect( $redirect_url ) {
$redirect_url = '/shop';
return $redirect_url;
}