• Resolved susquad

    (@susquad)


    Hi,

    I have problem with trying to redirect customers after registration. What ever I tried, simple snippet or plugins, I am unable to manage to have working redirection. I found when “New User Approve” plugin is activated it won’t work, but when I disable plugin then redirection work like a charm.

    At the moment I have this snippet, please can you help me to achieve this to work.

    My code:

    add_filter( ‘woocommerce_registration_redirect’, ‘ss_custom_redirection_after_registration’, 10, 1 );
    function ss_custom_redirection_after_registration( $redirection_url ){
    // Change the redirection Url
    $redirection_url = ‘https://hylbox.com/vielen-dank-fuer-die-registrierung/’;
    return $redirection_url; // Always return something
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @susquad,

    Thanks for contacting us,

    I hope you are doing well, We’ve informed our technical team about your issue, and they will work on it promptly. When we receive their response, we will get back to you. Our team is here to assist you.

    Thanks & Regards
    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @susquad,

    If you want to redirect a user after user registration then you can try this snippet of code.

    Here is the code:

    if(class_exists('pw_new_user_approve') || class_exists('PW_New_User_Approve')) {
    add_action('woocommerce_created_customer', 'redirect_after_confirm_registration');
    function redirect_after_confirm_registration($customer_id) {
    $status = pw_new_user_approve()->get_user_status($customer_id);
    if($status) {
    wp_redirect('https://hylbox.com/vielen-dank-fuer-die-registrierung/&#8217');
    exit;
    }
    }
    }

    If you have any questions, feel free to reach out. We’re here to assist you.

    Thank you

    Thread Starter susquad

    (@susquad)

    It works. Thank you!

    • This reply was modified 4 months ago by susquad.
    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @susquad,

    We would greatly appreciate your kind and honest review. Your feedback is important to us and can help other users make informed decisions about our product and services. Thank you for taking the time to share your thoughts.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.