Skip to main content

benecaster_subscription_resumed

Action Free

Fires when a built-in membership subscriber un-cancels a scheduled cancellation through the native billing portal before the billing period ends. After `cancel_at_period_end` is cleared on the Stripe subscription, the subscriber’s scheduled end date is removed and they remain active. Feed access was never interrupted — `cancel_at_period_end = true` does not revoke the subscriber’s feed token.

This action fires only when the resume request succeeds. If Stripe rejects the request — for example because the subscription is already fully cancelled — the action does not fire. Only Phase 2 built-in membership subscribers can trigger this action.

Examples

Cancel win-back sequence when subscriber changes mind

add_action( 'benecaster_subscription_resumed', function (
    int    $user_id,
    int    $show_id,
    string $stripe_subscription_id
): void {
    $email = get_userdata( $user_id )->user_email;
    my_crm_cancel_sequence( $email, 'winback-24h' );
    my_analytics_track( 'subscription_resumed', [ 'user_id' => $user_id, 'show_id' => $show_id ] );
}, 10, 3 );

Notes

Fires only for Phase 2 built-in membership subscribers. The subscriber's feed token is not affected — the feed URL is unchanged.