publishpress / PublishPress-Planner

PublishPress Planner has all the tools you need to manage WordPress content, including an editorial calendar to plan content. You can create custom status and notifications for content updates.
https://publishpress.com/publishpress
Other
47 stars 20 forks source link

Allow users to disable some notification options #380

Open stevejburge opened 5 years ago

stevejburge commented 5 years ago

We should add a UI for this

Customer:

We have a client that uses your plugin heavily. They've run into an issue with the Notifications meta box where users are selecting "Roles:" when they should be selecting individual recipients. That's a problem for their particular user/role structure, as it results in mass notifications going out to people who don't need them.

The editorial staff has communicated to the writers that they should no longer select a "Role", but to cut down on user error, I'd like to know if it would be possible to add a feature where we could hide the "Role" block in the autocomplete/dropdown. Or is there a filter or some way to do that already?

Anderson:

We have implemented 2 new filters in order to allow limiting the list of roles of users on the Notification meta box.

/**
 * Filters the list of users available for notification.
 *
 * @param array $users
 * @param int   $post_id
 */
publishpress_notification_users_meta_box
/**
 * Filters the list of roles available for notification.
 *
 * @param array $roles
 * @param int   $post_id
 */
publishpress_notification_roles_meta_box
stevejburge commented 5 years ago

One more request for this:

I never want Notifications sent by accident to Roles. I want to remove Roles from the Notify options. I do not have Roles checked in the custom notifications but the option pops up. How do I prevent Roles from being selected by mistake and sending a 1,000 emails?

Screen-Shot-2019-07-17-at-9-59-42-AM

We should have a blacklist where you could disable some options inside the "Notify" metabox