Opened 21 months ago

Last modified 7 months ago

#18471 new enhancement

Add action hook after cron processed it's jobs

Reported by: tott Owned by:
Priority: normal Milestone: Awaiting Review
Component: Cron Version: 3.2.1
Severity: normal Keywords: has-patch
Cc: ott@…, wordpress@…, info@…

Description

Sometimes it's hard to debug cron jobs or validate the results. A simple action fired after the wp-cron.php did his magic could help improve this experience.

Attachments (2)

wp-cron-action-hook.diff (230 bytes) - added by tott 21 months ago.
Add action hook to wp-cron.php
22143.diff (455 bytes) - added by batmoo 7 months ago.

Download all attachments as: .zip

Change History (7)

tott21 months ago

Add action hook to wp-cron.php

  • Cc wordpress@… added

#22143 was marked as a duplicate.

  • Cc info@… added
  • Keywords has-patch added

I guess using the 'shutdown' hook wouldn't do, since you would want access to the jobs just completed.

How about calling the hook 'did_cron' instead?

Last edited 8 months ago by scribu (previous) (diff)

batmoo7 months ago

Added patch from #22143; it fires the action immediately after the event has executed and passes in some args specific to that event.

Note: See TracTickets for help on using tickets.