Viewing 1 replies (of 1 total)
  • Plugin Author Azumi93

    (@azumi93)

    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.