Duplicate Welcome Emails
-
Hi Ultimate Member Team,
Congratulations on a great plugin, it’s a really great piece of work.
I am using a code snippet to auto approve users that are made in the users admin screen as detailed here:
https://docs.ultimatemember.com/article/1650-auto-approve-a-user-on-registration-in-wp-admin
It works nicely except calling
UM()->user()->approve()triggers the Welcome email to be sent twice. All other emails such as Account Deleted only trigger once as normal.Steps taken to resolve so far:
1. I’ve RETURNED FALSE using numerous WP core filters/functions to disable notifications such aswp_new_user_notification().
2. Swapped to TwentyTwentyTwo theme, issue remains.
3. Ensured no other membership style plugins are active.I was wondering maybe because I’ve manually called
UM()->user()->approve()does that mean that there’s a UM core filter that I need to remove usingremove_filterwhich is triggering the second email ?WP version: 5.9.3
UM version: 2.4.1Any advice or thoughts at this point would be gratefully received!
Many thanks,
Dave Hayhow
The topic ‘Duplicate Welcome Emails’ is closed to new replies.