Just a small addition I ended up needing today and thought I'd pass across in case it was useful.
It simply adds an extra field to the settings for each Integration which is a comma-separated list of post types. These post types are then used as the $notified_post_types currently referenced by the existing notifications.
I wasn't particularly sure what to do with the get_events() call in dispatch_events(), but the way I've done it seems to be the cleanest way to get said data into the callbacks for the hooks :smile:
It probably could do with some kind of means to add the post type to the notification output, but that was beyond the scope of what I needed. I'm not aware of any complications this causes elsewhere, it's been firing off notifications fine on this end all afternoon!
Just a small addition I ended up needing today and thought I'd pass across in case it was useful.
It simply adds an extra field to the settings for each Integration which is a comma-separated list of post types. These post types are then used as the $notified_post_types currently referenced by the existing notifications.
I wasn't particularly sure what to do with the get_events() call in dispatch_events(), but the way I've done it seems to be the cleanest way to get said data into the callbacks for the hooks :smile:
It probably could do with some kind of means to add the post type to the notification output, but that was beyond the scope of what I needed. I'm not aware of any complications this causes elsewhere, it's been firing off notifications fine on this end all afternoon!