benecaster_content_calendar_after_reorder_ideas
Fires once a show’s Content Calendar ideas have been rearranged, from the Ideas board or PUT /benecaster-content-calendar/v1/shows/{show_id}/ideas/order. It fires only when the write succeeded.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$show_id |
int |
— | The show whose ideas were rearranged |
$ids |
array |
— | The IDs of every idea of the show, first to last |
Example
add_action( 'benecaster_content_calendar_after_reorder_ideas', function ( int $show_id, array $ids ): void {
update_post_meta( $show_id, '_my_addon_first_idea', $ids[0] ?? 0 );
}, 10, 2 );
Notes
Affects
- Ideas board
- PUT benecaster-content-calendar/v1/shows/{show_id}/ideas/order
Need this built rather than just documented? See our services →