Hi we are having an issue where if the customer is registering as a trade (B2B) customer after they submit the request it just redirects them to the home page without giving any indication that it has been successful.
It only happens when they register as a B2B customer as when they register normally the redirect to the thank you page works.
This is the function below we use to redirect the signed up user.
Is there a function we can implement or attach to our current function to redirect correctly if they are a trade customer?
__ START CODE __
add_filter('woocommerce_registration_redirect', 'filter_woocommerce_registration_redirect', 10, 1);
function filter_woocommerce_registration_redirect($redirect) {
return get_permalink(wc_get_page_id('registration-thank-you'));
}
__ END CODE __

