How to allow “Post Updated” notification to be send before post is published

This is useful when you want to trigger the “Post updated” notification for drafts or pending posts.

add_filter( 'notification/trigger/wordpress/post/updated/statuses', function( $statuses, $post_type ) {

	$statuses[] = 'pending';
	$statuses[] = 'draft';

	return $statuses;

}, 10 ,2 );
1 person considered this helpful