benecaster_credit_options
Filters the list of credit templates available in the episode editor dropdown for a given episode. Each item is a credit object with keys: id (string UUID), name (string), body (string), is_default (bool). Use to programmatically add, remove, or reorder available templates — for example, inject an episode-type-specific credit template, suppress certain templates for specific shows, or provide templates from an external source.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$credits |
array |
— | Array of credit objects {id, name, body, is_default} available for this episode |
$show_id |
int |
— | ID of the show the episode belongs to |
$episode_id |
int |
— | ID of the episode post |
Returns:
array
Affects
- Episode editor credit template dropdown