Categories
CMS Mastering Development Wordpress

Redirect users after account verification Woocommerce

How can we redirect users after they click the verification link in their email (coming from the default Woocommerce + Woocommerce Germanized account verification) to a custom URL? Currently it takes users to their account page with a notice saying "Account verified".

The author of Germanized said I need to use at filter to change the URL but for some reason this doesn’t work 🙁 Any ideas?

    <?php

add_filter( 'woocommerce_gzd_double_opt_in_successful_redirect', 'my_child_redirect_doi_customer', 10, 1 );

function my_child_redirect_doi_customer( $url ) {
  return 'https://my-custom-url.com';
}

I of course would change the my-custom-url.com to the URL I need it to go to.

Leave a Reply

Your email address will not be published. Required fields are marked *