• Resolved d8tabyte

    (@d8tabyte)


    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 the notification/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.

Viewing 1 replies (of 1 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi, looks like you’re using nice names of those statuses, when you need to use the status slugs. So Assigned should become probably assigned etc.

    This should allow the plugin to execute Post Updated trigger when status changes to one of those. Then using Conditionals extension you can send different notifications based on the post statuc.

Viewing 1 replies (of 1 total)
  • The topic ‘Triggering slack message on Post Status Change’ is closed to new replies.