Don't send emails to disabled users.#14
Don't send emails to disabled users.#14shawnhooper wants to merge 3 commits intojaredatch:masterfrom
Conversation
|
Will this work if you replace Wordpress notifications with another plugin such as Better Notifications for WordPress? |
|
@ebauch I just looked at Better Notifications for WordPress' code quickly, and I believe it is compatible. However, you should look at pull request 15 (#15 (comment)) instead. It's the better version. |
|
@shawnhooper thanks for your quick response and support. I can confirm that this does not work with Better Notifications atm. It may be related to being a MU site. I deactivated users as Network Admin and they do show up as disabled in all sub-wordpress blogs. However, notifications are still being sent to all users. It may also be related of me using Post SMTP plugin and not the Wordpress mailer. |
This plugin addresses issue #5.
In the process, I also created a generic is_user_disabled() function that checks the usermeta value. This was being done in two places already, and this PR added a third.