Skip to main content

benecaster_feed_sync_completed

Action Free

Fires after every feed sync run regardless of outcome — both success and failure. $result is a detailed summary including error_message on failure. Use for monitoring dashboards, external logging, or alerting. Fires on every sync run (manual, on_login, and cron).

It always fires immediately after benecaster_feed_sync_after, on the success path and on both failure paths, so the state described there holds here too: on success the new episode drafts are already written and the show’s feed cache is already cleared. On failure nothing was written and no cache operations occurred. Both hooks are built in; neither needs an add-on. Unlike _after, which carries only counts, this one passes the complete result array.

Parameters

Name Type Default Description
$result array — Sync result object: {show_id, feed_url, triggered_by, user_id, episodes_found, episodes_new, drafts_created, draft_ids, status, error_message, started_at, completed_at}. draft_ids is the array of created episode post IDs (empty on failure).

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