Skip to main content

benecaster_reference_library_item_deleted

Action Free

Fires after a show’s reference library item is deleted, together with every episode reference citing it. It fires only when there was an item to delete. Deleting a whole show fires it once for each item in the show’s library, after benecaster_show_deleted.

The item is already gone when this fires, and there is no pre-delete counterpart: reading it inside your listener returns nothing. If you need its label or URL at deletion time, keep them from benecaster_reference_library_item_updated. The episodes that lose the reference are not named, and no per-episode hook fires for them, so treat this as invalidating everything you hold for the item.

Parameters

Name Type Default Description
$item_id int — ID of the deleted reference library item
$show_id int — ID of the show the item belonged to

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