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 businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 6
* @community https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_registration_redirect', 'bbloomer_customer_register_redirect' );
function bbloomer_customer_register_redirect( $redirect_url ) {
$redirect_url = '/shop';
return $redirect_url;
}
Hi
I have to redirect to Registration but without logged-in the user.
This filter works if the user to auto login after registration.
Is there any method so the User can generate the account but redirect on the custom Login page?
Thanks
Hello Tarun, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!