Post

Post published - include private posts

add_action( 'notification/trigger/registered', function( $trigger ) {
if ( $trigger->get_slug() !== 'wordpress/post/published' ) {
return;
}
$trigger->add_action( 'new_to_private', 10 );
$trigger->add_action( 'auto-draft_to_private', 10 );
$trigger->add_action( 'draft_to_private', 10 );
$trigger->add_action( 'pending_to_private', 10 );
$trigger->add_action( 'future_to_private', 10 );
} );