Skip to main content

benecaster_podcast_workflow_after_save_transcription_notes

Action Premium podcast-workflow

Fires once an episode’s Podcast Workflow Transcription box and notes have been saved, on every save, from the Workbench or PUT /benecaster-podcast-workflow/v1/shows/{show_id}/episodes/{episode_id}/transcription-notes. It fires only once the write is done.

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_after_save_transcription_notes', function ( int $episode_id, bool $done, string $notes, int $show_id ): void {
    if ( $done ) {
        my_plugin_attach_external_transcript( $episode_id );
    }
}, 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 →