Title: Notify on all users
Last modified: August 24, 2016

---

# Notify on all users

 *  Resolved [Hkroed](https://wordpress.org/support/users/sprithansi/)
 * (@sprithansi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/notify-on-all-users/)
 * Hi!
    Can this be modified so I can be notyfied when all users logs in? 🙂
 * [https://wordpress.org/plugins/email-notification-on-admin-login/](https://wordpress.org/plugins/email-notification-on-admin-login/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Azumi93](https://wordpress.org/support/users/azumi93/)
 * (@azumi93)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/notify-on-all-users/#post-6117040)
 * Hello, sorry for the late reply.
 * Yes, you can modify it, in a couple of ways:
 * 1. In index.php around line 18 modify the function **emnoti_check_if_admin()**
   by adding additional check to the **if statement** with `or current_user_can('
   read_page')` so that the end result is this:
 *     ```
       function _emnoti_check_if_admin(){
       		if(current_user_can('manage_options') or current_user_can('read_page')){
       			return true;
       		}else{
       			return false;
       		}
       	}
       ```
   
 * Second method:
 * 2. Again in the same place as above and in the same function modify it like this:
 *     ```
       function _emnoti_check_if_admin(){
       		if(current_user_can('manage_options') or is_user_logged_in()){
       			return true;
       		}else{
       			return false;
       		}
       	}
       ```
   
 * If you want to receive emails only when users are logged in, without admins, 
   then remove `current_user_can('manage_options') or` line and leave just the second
   as it is.
 * Hope this would help. If you have any more questions, please feel free to ask.

Viewing 1 replies (of 1 total)

The topic ‘Notify on all users’ is closed to new replies.

 * ![](https://ps.w.org/email-notification-on-admin-login/assets/icon-256x256.jpg?
   rev=1951088)
 * [Email notification on admin login](https://wordpress.org/plugins/email-notification-on-admin-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-notification-on-admin-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-notification-on-admin-login/)
 * [Active Topics](https://wordpress.org/support/plugin/email-notification-on-admin-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-notification-on-admin-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-notification-on-admin-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Azumi93](https://wordpress.org/support/users/azumi93/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/notify-on-all-users/#post-6117040)
 * Status: resolved