Skip to main content

benecaster_token_quietly_restored

Action Free

Fires when license recovery brings back a token its cutoff revoked. The same feed URL works again. Announced by cron in the same batches as benecaster_token_quietly_revoked. A token someone cancelled during the cutoff is not restored, so it is not announced.

Parameters

Name Type Default Description
$token_id int — ID of the token record
$user_id int — WordPress user ID
$show_id int — ID of the show
$tier_slug string — The tier the token holds

Example

add_action( 'benecaster_token_quietly_restored', function ( int $token_id, int $user_id, int $show_id, string $tier_slug ): void {
    as_enqueue_async_action( 'my_addon_apply_tier_tag', [ $user_id, $show_id, $tier_slug ] );
}, 10, 4 );

Notes

Never send email from it. The listener was never told their feed stopped. Worked example: the recipe Keep an email list right through a license lapse.

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