benecaster_availability_unlocked
Fires whenever a tier’s access to an episode opens. Two conditions trigger it: a scheduled availability datetime passing (checked by the availability cron), and a tier set to immediate availability when an episode is published. Fires after cache invalidation in both cases. The Email Editor episode notifications feature hooks this action to send episode notification emails.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$episode_id |
int |
— | ID of the episode |
$show_id |
int |
— | ID of the parent show |
$tier_slug |
string |
— | Tier slug that gained access |
$available_datetime |
int |
— | Unix timestamp when availability opened |
Need this built rather than just documented? See our services →