• Resolved Arp Laszlo

    (@echoleaf)


    Do you have a snippet to disable the Your registration is pending for approval email and the Registration Denied email? The other 2 emails (notification to admin about pending request, and email after approval) are fine, but the pending for approval & registration denied emails are using up our daily email quota due to so many spam requests.

    Thank you!

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

    (@hamza1010)

    Hello @echoleaf,

    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. Thank you for your patience.

    Thanks & Regards
    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @echoleaf,

    To prevent spam registration, please use the captcha in the registration form.

    Also, Disabling the denied email is not possible in the free version of the New User Approve.

    Please use this code in functions.php of the active theme.

    To disable the Welcome/Pending Email:

    add_filter( 'nua_disable_welcome_email', function( $email_status, $user_id ) {
    return false;
    });

    To disable the Admin Request Email:

    add_filter('new_user_approve_email_admins', function( $admin_emails ) {
    return array();
    });


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

    Thank you

    Thread Starter Arp Laszlo

    (@echoleaf)

    Thank you so much for the prompt response! Which one is the Admin Request Email?

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @echoleaf,

    Here is the Admin Request Email:

    add_filter('new_user_approve_email_admins', function( $admin_emails ) {
    return array();
    });

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

    Thank you

    Thread Starter Arp Laszlo

    (@echoleaf)

    Sorry, what I meant was what is the content of the Admin Request email? I’m not sure I want to disable it if it’s the one that tells the admin that an account is waiting for approval/disapproval.

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @echoleaf,

    The Admin Request Email is the user account waiting for approval or denial by admin, It is up to you to disable or keep it as an enable.

    Thank you

    Hello. I was searching for the same solution. When someone new registers, they instantly get the “Your registration is pending for approval” email and also the “Your account has been created!” email.

    Why is their account getting created before it has been approved? They’re able to set and edit the password and do everything normally, before any admin approves the account. It seems the User Approval plugin isn’t actually stopping anyone from registering and doing spam-like things. I would think that until they are “approved”, they shouldn’t be able to set a password and do anything with their account.

    And the first email they receive, we don’t want to send that in case they are spammers. How do we add the snippet to block the “Your registration is pending for approval” email? I added the 2 snipets above, but the new unapproved user is still receiving both emails immediately, using up the daily email quote. The admin email is successfully not coming through now.

    Thanks for your assistance.

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @echoleaf,

    Please create a ticket on our official website so that we can connect you directly with our Technical team.

    Looking forward to getting your issue resolved.

    Thank you

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