Skip to main content

benecaster_podcast_workflow_before_recording_change

Action Premium podcast-workflow

Fires before an episode’s recording is marked complete or unmarked in Podcast Workflow, only when the value changes.

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_before_recording_change', function ( int $episode_id, bool $complete, int $show_id ): void {
    my_audit_log( 'workflow-recording-changing', $episode_id, $complete ? 'complete' : 'not complete' );
}, 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 →