Triggering slack message on Post Status Change
-
Hello,
I’m using your Notification plugin to manage the editorial workflow for our online sports media website, Detroit Sports Nation. We have a team of writers and editors, and we’re trying to streamline our process by sending notifications at various stages of article development.
We’re using custom post statuses provided by the PublishPress Planner Pro plugin. The statuses we use are: Pitch, Assigned, In Progress, Draft, Pending Review, Scheduled, and Published.
I’ve tried adding these custom statuses to the Notification plugin by modifying our theme’s
functions.php
file, using thenotification/trigger/wordpress/post/updated/statuses
filter as per your documentation. Here’s the code snippet I used:add_filter( 'notification/trigger/wordpress/post/updated/statuses', function( $statuses, $post_type ) { $statuses[] = 'Pitch'; $statuses[] = 'Assigned'; $statuses[] = 'In Progress'; $statuses[] = 'Draft'; $statuses[] = 'Pending Review'; $statuses[] = 'Scheduled'; $statuses[] = 'Published'; return $statuses; }, 10, 2 );
However, I’m unable to trigger notifications when the post status changes. Could you please guide me on how to correctly set up the plugin to send notifications based on these custom post statuses?
Thank you for your time and assistance.
- The topic ‘Triggering slack message on Post Status Change’ is closed to new replies.