Skip to main content

benecaster_content_calendar_after_save_idea

Action Premium content-calendar

Fires once a Content Calendar idea has been written: added or edited on a show’s Ideas board or over the REST API. It fires only when the write succeeded.

Parameters

Name Type Default Description
$idea array — The idea as saved, with its `id`. Its fields are listed in the walkthrough below.
$context string — `create` or `update`

Example

add_action( 'benecaster_content_calendar_after_save_idea', function ( array $idea, string $context ): void {
    my_audit_log( 'calendar-idea-saved', $idea['show_id'], $idea['title'] . ' (' . $context . ')' );
}, 10, 2 );

Notes

Each idea is { id, show_id, type, type_name, title, notes, position, created_by, created_at, updated_at }. Walkthrough: Run your own code when a Content Calendar idea is saved, deleted or rearranged.

Affects

  • Ideas board
  • POST benecaster-content-calendar/v1/shows/{show_id}/ideas
  • PUT/PATCH benecaster-content-calendar/v1/shows/{show_id}/ideas/{id}

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