Skip to main content

benecaster_podcast_workflow_after_recording_change

Action Premium podcast-workflow

Fires once an episode’s recording has been marked complete or unmarked in Podcast Workflow. It fires only when the value changed and the write is done.

Parameters

Name Type Default Description
$episode_id int — The episode whose recording is being marked
$complete bool — `true` when the recording is marked complete, `false` when it is unmarked
$show_id int — The episode's own show

Example

add_action( 'benecaster_podcast_workflow_after_recording_change', function ( int $episode_id, bool $complete, int $show_id ): void {
    if ( $complete ) {
        my_plugin_start_editing( $episode_id );
    }
}, 10, 3 );

Notes

Affects

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

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