Skip to main content

benecaster_email_editor_after_episode_notification_send

Action Premium email-editor

Fires when an episode notification has handed every listener to Benecaster’s email queue, or dropped the rest as too late. Delivery happens later, from the queue: listen to benecaster_email_queue_job_complete for that.

Parameters

Name Type Default Description
$episode_id int — The episode
$show_id int — Its show
$trigger_key string — `teaser`, or `unlock:` and the slug Benecaster unlocked
$counts array — Listeners by status: `queued`, `skipped` (refused at send: an opt-out, a filter, no address), `expired`, `sending`

Example

add_action( 'benecaster_email_editor_after_episode_notification_send', function ( int $episode_id, int $show_id, string $trigger_key, array $counts ): void {
    my_addon_log( $episode_id, $counts['queued'] ?? 0, $counts['skipped'] ?? 0 );
}, 10, 4 );

Notes

Listeners still unsent three days after the notification was recorded are expired. A notification that stops because the episode was unpublished, or notifications or the Email Editor were switched off for the show, does not fire this. Walkthrough: Choose who hears about a new episode, and when it counts as new.

Need this built rather than just documented? See our services →