Skip to main content

benecaster_podcast_workflow_before_save_outline

Action Premium podcast-workflow

Fires before an episode’s Podcast Workflow outline is written, on every save.

Parameters

Name Type Default Description
$episode_id int — The episode whose outline is being saved
$outline_html string — The outline as `` paragraphs with `` line breaks, every character escaped
$final bool — Whether the outline is marked final
$show_id int — The episode's own show

Example

add_action( 'benecaster_podcast_workflow_before_save_outline', function ( int $episode_id, string $outline_html, bool $final, int $show_id ): void {
    my_audit_log( 'workflow-outline-saving', $episode_id, $final ? 'final' : 'draft' );
}, 10, 4 );

Notes

The outline is internal and never published: do not put it anywhere a listener can see it. Walkthrough: Run your own code when an episode's workflow status, recording or outline changes in Podcast Workflow.

Affects

  • Workbench
  • PUT benecaster-podcast-workflow/v1/shows/{show_id}/episodes/{episode_id}/outline

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