I have a very specific user registration process to implement on a website. I need to follow these steps when a user register via the front-end form :
check email domain
- if whitelisted domain: regular wordpress workflow (user registered, email notifications sent then user can choose is password during the first authentication process)
If blacklisted domain
- create user in DB
- assign a custom WP role (eg. 'temp_account') for this user
- don't send regular wordpress mail notifications
- user with 'temp_account' role can't login
I can't find the proper action/filter I need to use for checking the email then prevent wordpress from sending default notifications...
Any advice/suggestion would be appreciated ;)