benecaster_podcast_workflow_after_save_tile_settings
Fires once a show’s choice of Podcast Workflow Workbench tiles has been 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 was saved |
$tiles |
array |
— | What was stored: only the differences from the defaults, `{ tile_id: true|false }` |
Example
add_action( 'benecaster_podcast_workflow_after_save_tile_settings', function ( int $show_id, array $tiles ): void {
if ( false === ( $tiles['chapter-markers'] ?? null ) ) {
my_plugin_stop_suggesting_chapters( $show_id );
}
}, 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 →