[wp-trac] [WordPress Trac] #43801: Need better documentation to show importance of checking for args while using wp_schedule_event and wp_next_scheduled

WordPress Trac noreply at wordpress.org
Fri Feb 13 20:26:15 UTC 2026


#43801: Need  better documentation to show importance of checking for args while
using wp_schedule_event and wp_next_scheduled
--------------------------------------+--------------------------
 Reporter:  digamberpradhan           |       Owner:  westonruter
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  Cron API                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  docs
--------------------------------------+--------------------------
Changes (by westonruter):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61639" 61639]:
 {{{
 #!CommitTicketReference repository="" revision="61639"
 Cron API: Improve documentation on matching event arguments to avoid
 duplicate entries.

 This harmonizes and clarifies the documentation for the `$args` parameter
 in `wp_schedule_event()`, `wp_schedule_single_event()`,
 `wp_reschedule_event()`, `wp_unschedule_event()`,
 `wp_clear_scheduled_hook()`, and `wp_next_scheduled()`, to emphasize the
 requirement for matching arguments and the risks of mismatching them.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10890

 Props manishxdp, westonruter, ovidiul, digamberpradhan.
 Fixes #43801.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43801#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list