Skip to main content

benecaster_podcast_workflow_before_save_preset_tasks

Action Premium podcast-workflow

Fires before a show’s Podcast Workflow preset task list is saved, from the show’s Workflow settings tab → Preset tasks or PUT /benecaster-podcast-workflow/v1/shows/{show_id}/task-list.

Parameters

Name Type Default Description
$show_id int — The show whose preset task list is being saved
$tasks array — The list as stored, in order: `[ { id, name, offset_days, duration_days } ]`

Example

add_action( 'benecaster_podcast_workflow_before_save_preset_tasks', function ( int $show_id, array $tasks ): void {
    my_audit_log( 'workflow-preset-tasks-saving', $show_id, count( $tasks ) . ' tasks' );
}, 10, 2 );

Notes

The preset list is only where new production plans start: saving it never changes an episode's existing plan. Walkthrough: Read or change a show's preset task list, and run code when a show saves it.

Affects

  • Workflow tab (show settings)
  • PUT benecaster-podcast-workflow/v1/shows/{show_id}/task-list

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