Title: Notify admin during login
Last modified: July 18, 2018

---

# Notify admin during login

 *  Resolved [michaelrieder](https://wordpress.org/support/users/michaelrieder/)
 * (@michaelrieder)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/notify-admin-during-login/)
 * Dear Chad
 * Is there any possiblity to send an automatic email (notification) to the admin
   if a user logs in via the Login form?
 * Best Regards
 * Michael
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnotify-admin-during-login%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/notify-admin-during-login/#post-10506385)
 * Yes – there several hooks directly in the WP-Members login function, but I’d 
   probably hook it to the [wp_login action](https://developer.wordpress.org/reference/hooks/wp_login/),
   which would fire no matter when/where the user logged in (of course that means
   you probably want to add some logic to exclude admins since it would fire when
   you log in as well).
 * Your action function would just need to retrieve the user’s email address (the
   WP user object is passed to the wp_login action so you’d have access to any user
   info via ID) and then send a message using [wp_mail()](https://developer.wordpress.org/reference/functions/wp_mail/).

Viewing 1 replies (of 1 total)

The topic ‘Notify admin during login’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [login](https://wordpress.org/support/topic-tag/login/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/notify-admin-during-login/#post-10506385)
 * Status: resolved