[wp-trac] [WordPress Trac] #60645: Add pre-fire hook for cron
WordPress Trac
noreply at wordpress.org
Sat May 18 20:27:19 UTC 2024
#60645: Add pre-fire hook for cron
-------------------------------------------------+-------------------------
Reporter: kkmuffme | Owner: audrasjb
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.6
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-docs | Focuses:
dev-feedback |
-------------------------------------------------+-------------------------
Changes (by oglekler):
* keywords: has-patch needs-testing needs-docs => has-patch needs-testing
needs-docs dev-feedback
Comment:
I wonder if this hook makes sense. The hooked function itself can load any
libraries, objects, classes and whatever, the code needs to be organized
this way reducing unnecessary load and moving this action from one hook to
another is not making the code itself better. If you have two actions
registered in the same big class, it will not make any difference.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60645#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list