Skip to main content

benecaster_podcast_workflow_before_save_sponsor_confirmation

Action Premium podcast-workflow

Fires before an episode’s Podcast Workflow Sponsor confirmation box and notes are saved, on every save, from the Workbench or PUT /benecaster-podcast-workflow/v1/shows/{show_id}/episodes/{episode_id}/sponsor-confirmation.

Parameters

Name Type Default Description
$episode_id int — The episode being saved
$confirmed bool — `true` when **Sponsors confirmed** 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_sponsor_confirmation', function ( int $episode_id, bool $confirmed, string $notes, int $show_id ): void {
    my_audit_log( 'workflow-sponsor-confirmation-saving', $episode_id, $confirmed ? 'ticked' : 'not ticked' );
}, 10, 4 );

Notes

Affects

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

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