benecaster_transcript_download_formats
Decides the Download the transcript: links after the on-page transcript, on the episode page and in [benecaster_transcript] in full or scrollable mode. Return [] to remove them. The filter can remove links but never add one: they keep the add-on’s order, and a format the transcript doesn’t have is ignored.
It is asked only for a visitor who may see the transcript. The links are the transcript’s public file address, so returning [] hides a link, not the file. It doesn’t change the episode editor’s Export buttons.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$formats |
string[] |
— | `srt`, `vtt`, `txt` and `pdf` for a transcript with timestamps, `txt` and `pdf` for one without. No `pdf` for a transcript, episode title or show name in a script the PDF can't print, or on a server without PHP's `dom` and `mbstring`. |
$episode_id |
int |
— | ID of the episode |
Returns:
string[]
Need this built rather than just documented? See our services →