• Resolved alexxx55555

    (@alexxx55555)


    328/5000
    Hello
    After approval in the registration form woocommerce client receives an email

    You have been approved to access {sitename}
    {Username}
    {LOGIN_URL}
    To set or reset your password, visit the following address:

    In {login_url} redirects to registration in worpress not in my Accoun page

    How can I solve this problem

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @alexxx55555,

    Thanks for using New User Approve, We have found some workaround and it is working on our end please use it on your end and let us know if it works for you or not.

    function nua_customize_email_tags($email_tags ) {
        $customized_email_tags = array();
    foreach($email_tags as $email_tag) {
    
    if ( 'login_url' == $email_tag['tag'] ) {
        $email_tag['function'] = 'nua_email_tag_custom_loginurl';
        $customized_email_tags[] = $email_tag;
    } else {
        $customized_email_tags[] = $email_tag;
    }
    }
    return $customized_email_tags;
    }
    add_filter('nua_email_tags', 'nua_customize_email_tags');
    
    function nua_email_tag_custom_loginurl( $attributes) {
        return get_permalink( get_option('woocommerce_myaccount_page_id') );
    }
    

    Paste the following code in your child theme’s functions.php file so it will change the {login_url} page link to your Woo Commerce my-account page.

    Thanks

    Thread Starter alexxx55555

    (@alexxx55555)

    Thank you
    Everything works,

    1. The client enters the username and password
    2. waiting for the administrator’s confirmation by e-mail
    3. receives an email with confirmation, the user has an email
    link to My Account page

    click on the link and you must enter the User and Password again

    It is possible to make the customer not enter the data again, when he clicks on the link to be already registered

    Thanks

    Hi @alexxx55555,

    The user will have to enter the details and manually login to the site.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘approval link’ is closed to new replies.