• Resolved albertsareh

    (@albertsareh)


    I see that users are registering and receiving 2 emails for confirmation (one from UM and one from WP, pretty sure is not normal for the WP email to appear if the UM is activated). Not sure if it matters which one you click to verify the email, but some users even after email verification, they are still having the status ”Awaiting email confirmation”, and can’t login, due to the error being that the account is still awaiting email confirmation. First time they click on that link, they are logged in, and they can search through the site like any user logged in, however in the DB, the key “is_activated” is 0 instead of 1 like other users that have been activated.

    I deactivated the cache plugin “WP Rocket”, but the issue still persists. It doesn’t happen to all users.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @albertsareh

    Could you please try adding the code snippet below to disable the WP user activation email?
    add_filter("wpmu_signup_user_notification","__return_false");

    And then try to register a new account and see if you will receive the UM activation email only.

    Regards,

    Thread Starter albertsareh

    (@albertsareh)

    Where should I place the code?

    @albertsareh

    Add the code snippet to your child theme functions.php file
    or add to the “Code Snippets” plugin.

    https://www.ads-software.com/plugins/code-snippets/

    Thread Starter albertsareh

    (@albertsareh)

    Thought it would be in functions.php, did that, and it still sends the automatic email from WordPress.

    Thread Starter albertsareh

    (@albertsareh)

    I see the problem. When the user clicks on the activation button from the email sent by UM, the ”is_activated” key doesn’t change. But if they click on the link received from WP, it is updated.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @albertsareh

    UM doesn’t have the is_activated user meta. Are you using another plugin for this?

    Regards,

    Thread Starter albertsareh

    (@albertsareh)

    No, maybe Woocommerce if it counts, but I deactivated all the options that included registration during checkout

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @albertsareh

    Try adding this code snippet to make the is_activated value true after activating the account via the activation link.

    add_action("um_after_email_confirmation","um_111221_after_email_confirmation", 10, 1);
    function um_111221_after_email_confirmation($user_id){
         update_user_meta( $user_id, "is_activated", true );
    }

    You can add the code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Regards,

    Thread Starter albertsareh

    (@albertsareh)

    Thank you! It seems like it worked, however the 2nd basic activation email is still sent. https://prnt.sc/1zfnw84

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @albertsareh

    If you don’t need the Email Activation notification, you can disable it in WP Admin > Ultimate Member > Settings > Email. You can also set the registration option to auto-approve in the User role settings. Please go to WP Admin > Ultimate Member > User Roles > Edit a Role > see “Registration Options” > change the ”
    Registration Status” option to “Auto Approve”.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @albertsareh

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help… ??

    Regards,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘User not activated’ is closed to new replies.