Per-post Override

Per-post Override is a premium add-on for Better Notifications for WordPress.
You can purchase it here.

The Better Notifications for WordPress Per-post Override add-on (BNFW PPO) allows you to override some of the settings of a notifications directly when editing the post, page, or custom post type. You can:

  • Choose whether you’d like to override an enabled notification on a per post / page / custom post type basis.
  • Choose whether to disable that notification on a per post / page / custom post type basis.
  • Override the Users / User Roles that you want the notification(s) of the post / page / custom post type that you’re editing to be sent to.

This add-on can override all post, page, and custom post type notifications but not transactional notifications. It also works with all other BNFW add-ons that create new notification types, so if you also have the Custom Fields add-on installed, you’ll see new options allowing you to override any custom field notifications that you may have set-up too.

 

Screenshot 2016-02-12 09.39.08

How to Override a Notification

  1. Add a new or edit the post / page / custom post that you want to override a notification for.
  2. On the left, you’ll see a new meta box called Notifications (see screenshot above) showing all enabled notifications.
  3. Choose whether you want to override a particular notification by ticking the corresponding ‘Override’ checkbox.
  4. Choose whether you want to enable or disable the notification for this post / page / custom post. If the checkbox is ticked, the notification is enabled, if it’s unchecked, the notification is disabled and won’t be sent for this post / page / custom post.
  5. You can then override the Users / User Roles for the notification for this post only too.

 

Checking Which Notifications Are Overridden

When viewing the All Posts / All Pages / All *Custom Post Type* screen, you’ll see a new column called Notification Overridden that lets you know if a post is overriding the global settings in one of your notifications. It won’t tell you which notification it’s overriding, but it’ll help you get started on tracking it down.

Screenshot 2015-12-22 15.17.15

 

Please Note: After changing the options in the BNFW Notifications metabox and pressing Update, it might trigger any Post / Page / Custom Post Type Updated notifications that you may have set-up. This is standard WordPress behaviour and, to my knowledge, can’t be changed.

 

Filter

Occasionally, you may see a custom post type or plugin that adds a screen to the WordPress Admin which will also display the Per-post Override add-on meta box. If you see this and don’t want it to show on a particular page, you can use this filter to hide it.

function bnfw_ignore_cpt( $cpts ) {
$cpts = ‘cpt_to_be_ignored’;
}
add_filter( ‘bnfw_ppo_ignore_cpt’, ‘bnfw_ignore_cpt’ );