benecaster_podcast_workflow_before_save_transcription_notes
Fires before an episode’s Podcast Workflow Transcription box and notes are saved, on every save, from the Workbench or PUT /benecaster-podcast-workflow/v1/shows/{show_id}/episodes/{episode_id}/transcription-notes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$episode_id |
int |
— | The episode being saved |
$done |
bool |
— | `true` when **Transcript done** is ticked |
$notes |
string |
— | The notes as stored: plain text, tags stripped, line breaks kept, ends trimmed |
$show_id |
int |
— | The episode's own show |
Example
add_action( 'benecaster_podcast_workflow_before_save_transcription_notes', function ( int $episode_id, bool $done, string $notes, int $show_id ): void {
my_audit_log( 'workflow-transcription-notes-saving', $episode_id, $done ? 'ticked' : 'not ticked' );
}, 10, 4 );
Notes
The box and notes are the tile's form while the Transcription add-on is off for the show; with it on, Transcription's status decides the tile and the notes are kept. Walkthrough: Read an episode's Transcription tile, save its notes, and run code when they are saved.
Affects
- Workbench
- PUT benecaster-podcast-workflow/v1/shows/{show_id}/episodes/{episode_id}/transcription-notes
Need this built rather than just documented? See our services →