benecaster_after_email_send_type
Type-specific variant of benecaster_after_email_send. Fires immediately after the generic hook for exactly one email type. The $email_type parameter is omitted — it is encoded in the hook name. Use this when your callback targets a single email type and you want to avoid a type-check inside the callback.
Replace {type} with the stable email type string. Stable core type strings:
| Type string | Sent when | |—|—| | welcome | New subscriber token generated for the first time | | token_reset | A subscriber’s feed token is reset | | tier_change | A subscriber’s membership tier is updated | | auto_upgrade_fired | Admin notification when a scheduled plan auto-upgrade takes effect | | donation_thank_you | Sent to donor after a successful Listener Support donation | | broadcast | An Email Editor broadcast is dispatched (add-on: email-editor) | | analytics_digest_daily | Daily analytics digest (add-on: analytics-dashboard) | | analytics_digest_weekly | Weekly analytics digest (add-on: analytics-dashboard) | | analytics_digest_monthly | Monthly analytics digest (add-on: analytics-dashboard) | | episode_notification | Subscriber notification when an episode becomes available (add-on: email-editor) |
These strings are stable public API and will not change between minor versions. Add-ons may introduce additional types following the same snake_case convention.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$recipient |
string |
— | Recipient email address |
$subject |
string |
— | Resolved subject line |
$sent |
bool |
— | Whether wp_mail() accepted the message for handoff |
$user_id |
int|null |
— | WordPress user ID, or null for admin-only emails |
$show_id |
int|null |
— | Show ID, or null if not show-specific |