The Admin Login Notification feature helps you to be aware of when a WordPress administrator has logged into your site when you are not expecting it.
If you want to be notified every time an administrator user logs into your WordPress site, enter a notification email address into the field. If you leave this field blank, you'll not be notified. (See the screenshot below)
This feature can also be set to send email notification to each user upon successful login. (See the screenshot below)
"User Login Notification Email" has a couple of points that you should note:
- Notification email is not sent if 2-factor authentication is enabled (this prevents 2FA emails + login notification emails)
- If the email address of the “admin notification email” is the same as the email address for the user logging on, a 2nd notification email will not be sent.
How to change the roles for login notification emails
The WordPress filter you can use to change the minimum role for this notification is:
We only currently support the following 5 roles:
Also, selecting any role will result in notifications for any users at that role or above. E.g. 'editor' will result in email notifications for editor, administrator, and network_admin.