• Resolved shemakeswebsites

    (@shemakeswebsites)


    Hello, we are using the plugin to only allow registrations with an invitation code. The users register by inputting their email address, password and the invitation code. The account is then automatically approved and the user can then login with their email and password combination.

    The problem is that the plugin is automatically sending the new user welcome email, which directs them to the /wp-login.php and also invites them to set or reset their password. Given the previous explanation, you can see why this would be confusing. I found a snippet in the support forum that is suppose to STOP the welcome emails, but it is not. In addition, even if I am using the invitation code setup, an admin email is still sent to the admin email that askes them to approve/deny the new registration. Since the invitation code allows instant approval, this email shouldn’t be sent either.

    Please advise, thank you.

    Code snippet to STOP welcome emails that does not work:

    add_filter('nua_disable_welcome_email',function(){return true;});
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @shemakeswebsites,

    Thanks for your email,

    I hope you are doing well, We have forwarded this to our technical team and we will get back to you soon.

    Thanks & Regards

    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @shemakeswebsites,

    Yes, you have found the correct snippet to disable the user welcome email.

    Please use this snippets of code in the functions.php of child theme.

    Disable Welcome Email:

    add_filter("nua_disable_welcome_email", "nua_disable_wel_email", 2);
    
    function nua_disable_wel_email() {
    	return true;
    
    }
    

    Disable the user request to Admin Email:

    if(class_exists("pw_new_user_approve")) {
    	$obj = pw_new_user_approve::instance();	
    	remove_action("user_register", array($obj, "request_admin_approval_email_2"));
    
    }
    

    Let us know if you still have any issues so please feel free to ask.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email issues’ is closed to new replies.