[wp-trac] [WordPress Trac] #52655: Ability to Change the wp_next_scheduled() function output.
WordPress Trac
noreply at wordpress.org
Thu Feb 25 23:23:15 UTC 2021
#52655: Ability to Change the wp_next_scheduled() function output.
-------------------------+------------------------------
Reporter: infosatech | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by peterwilsoncc):
@infosatech Hello, and welcome to trac!
> If we use 'pre_get_scheduled_event' filter, it will also override the
default Cron functions. So that I think 'wp_next_scheduled' is necessary.
Are you able to expand on this a little bit? I absolutely understand why
you might wish to replace wp-cron with action scheduler but I am unclear
as to why overriding the other wp-cron functionality is undesirable?
Doesn't replacing cron require you to use all the `pre_*` filters within
wp-cron?
I'm not opposed to adding the filter, by the way, it was something I
considered back in 5.1 but ultimately decided against, see #45976.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52655#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list