After a user registers using WooCommerce's registration form, I want to redirect them to a custom page, such as my other website, instead of the my-account
page.
add_action('woocommerce_registration_redirect', 'ps_wc_registration_redirect',10);
function ps_wc_registration_redirect( $redirect_to ) {
$redirect_to ="http://example.com";
return $redirect_to;
}
The hook above successfully redirects users when the destination is a page on the current site, but when the redirect location is off of the current site, it does not work.
Is there any other hook available after the user registration redirection occurs?