WordPress   

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 Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us