benecaster_podcast_workflow_before_save_tile_settings
Fires before a show’s choice of Podcast Workflow Workbench tiles is saved, from the show’s Workflow settings tab or PUT /benecaster-podcast-workflow/v1/shows/{show_id}/workflow-settings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$show_id |
int |
— | The show whose tile choice is being saved |
$tiles |
array |
— | What is about to be stored: only the differences from the defaults, `{ tile_id: true|false }` |
Example
add_action( 'benecaster_podcast_workflow_before_save_tile_settings', function ( int $show_id, array $tiles ): void {
my_audit_log( 'workflow-tiles-saving', $show_id, wp_json_encode( $tiles ) );
}, 10, 2 );
Notes
$tiles holds only the differences from each tile's default_on, as { tile_id: true|false }; a tile left out is at its default. Walkthrough: Read or change which Workbench tiles a show draws, and run code when a show saves its choice.
Affects
- Workflow tab (show settings)
- PUT benecaster-podcast-workflow/v1/shows/{show_id}/workflow-settings
Need this built rather than just documented? See our services →