WordPress / wp-feature-notifications

WP Feature Notifications - a proposal to modernise the way in which WordPress handles emails, admin notices and user notifications
https://wordpress.github.io/wp-feature-notifications/
GNU General Public License v2.0
189 stars 19 forks source link

Configure notifications recipients #45

Open raaaahman opened 3 years ago

raaaahman commented 3 years ago

Notifications could be configured to be sent or not to specific recipients (users) or broader categories (roles).

This could be done by passing a configured Recipient_Factory to the Notification_Factory responsible for instantiating the given notifications.

EdithAllison commented 1 year ago

I can see why this would be nice, but I don't know how it would work in reality, as plugins using the API won't know which users and roles are active.