Redirect user to a custom URL after registration in WooCommerce

By default, the newly created users are redirected to the My Account page in WooCommerce but you can easily change this redirect URL with the woocommerce_registration_redirect  WooCommerce hook.

 //Custom Redirect after new account creation in WooCommerce
function rp_custom_redirect_after_user_registration( $redirect ) { 
    $redirect = home_url().'/custom-page/';
    return $redirect;
add_filter( 'woocommerce_registration_redirect', 'rp_custom_redirect_after_user_registration', 10, 1 );
Need a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us