benecaster_subscriber_feed_reactivated
Fires when a previously inactive subscriber’s podcast app polls their feed again, confirming re-engagement after a period of silence. Called from the feed request handler when a valid feed request is processed for a token whose engagement_status is 'at_risk'. After this hook fires, engagement_status is reset to 'active', and subsequent polls do not re-fire this hook until the subscriber goes inactive again and benecaster_subscriber_feed_inactive fires a second time.
$days_inactive is the number of full days elapsed since last_accessed_at before this reactivating poll — that is, how long the subscriber was silent before returning.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$user_id |
int |
— | WordPress user ID |
$show_id |
int |
— | ID of the show |
$tier_slug |
string |
— | Tier slug for this subscription |
$days_inactive |
int |
— | Days elapsed since last_accessed_at before this reactivating poll |
Examples
Remove inactive tag and cancel win-back sequence
add_action( 'benecaster_subscriber_feed_reactivated', function (
int $user_id,
int $show_id,
string $tier_slug,
int $days_inactive
): void {
$user = get_userdata( $user_id );
if ( ! $user ) {
return;
}
my_esp_remove_tag( $user->user_email, 'podcast-at-risk' );
my_esp_cancel_sequence( $user->user_email, 're-engagement' );
my_esp_add_tag( $user->user_email, 'podcast-active' );
}, 10, 4 );
Notes
Use this hook to reverse actions taken in benecaster_subscriber_feed_inactive callbacks: remove re-engagement tags, cancel win-back automations, and restore the subscriber to an active segment in your email platform.
Need this built rather than just documented? See our services →