I'm trying the code for redirect url after registration, but its not working.

I tried other options, I used the plugin, but it's same not work.

I use registration form in "my_account" page.

Could you help me for setting this function?

Who have the working code for redirect url after registration?

function custom_redirection_after_registration( $redirection_url ){
    // Change the redirection Url
    $redirection_url = get_home_url(); // Home page

    return $redirection_url; // Always return something
function custom_registration_redirect() {
    return home_url('/');
add_action('woocommerce_registration_redirect', 'custom_registration_redirect', 2);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.