I am developing a website which is having two user groups. The users of first user group will have self activation email with account activation link while second user group will be activated by admin after registration. As there is Users Setting for "Verify email addresses?" but we can't do it for specific user group. Is there any solution for it? Please suggest if possible with plugin.
I'm not aware of an existing plugin that would do this, but are you comfortable writing one?– Brad Bell ♦Sep 9, 2019 at 21:19
Thanks Brad, could you please give me some idea if there is any event or hook we can control it.– Bhashkar YadavSep 10, 2019 at 5:18
Off the top of my head, the pseudocode would be something like:
- Listen for the
- Check if it's a new user registration.
- If so, check the user group status.
- Apply account activation email logic based on #3.