|
33 | 33 | * hook's callback function. Each value in the array |
34 | 34 | * is passed to the callback as an individual parameter. |
35 | 35 | * The array keys are ignored. Default empty array. |
| 36 | + * |
| 37 | + * These arguments are used to uniquely identify the |
| 38 | + * scheduled event and must match those used when the |
| 39 | + * event was originally scheduled. If the arguments |
| 40 | + * do not match exactly, WordPress will treat the |
| 41 | + * event as different, which can lead to duplicate |
| 42 | + * cron events being scheduled unintentionally, |
| 43 | + * excessive growth of the 'cron' option, and |
| 44 | + * database performance issues. |
36 | 45 | * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. |
37 | 46 | * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure. |
38 | 47 | */ |
@@ -228,6 +237,15 @@ function wp_schedule_single_event( $timestamp, $hook, $args = array(), $wp_error |
228 | 237 | * hook's callback function. Each value in the array |
229 | 238 | * is passed to the callback as an individual parameter. |
230 | 239 | * The array keys are ignored. Default empty array. |
| 240 | + * |
| 241 | + * These arguments are used to uniquely identify the |
| 242 | + * scheduled event and must match those used when the |
| 243 | + * event was originally scheduled. If the arguments |
| 244 | + * do not match exactly, WordPress will treat the |
| 245 | + * event as different, which can lead to duplicate |
| 246 | + * cron events being scheduled unintentionally, |
| 247 | + * excessive growth of the 'cron' option, and |
| 248 | + * database performance issues. |
231 | 249 | * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. |
232 | 250 | * @return bool|WP_Error True if event successfully scheduled. False or WP_Error on failure. |
233 | 251 | */ |
@@ -334,6 +352,15 @@ function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array(), $wp |
334 | 352 | * hook's callback function. Each value in the array |
335 | 353 | * is passed to the callback as an individual parameter. |
336 | 354 | * The array keys are ignored. Default empty array. |
| 355 | + * |
| 356 | + * These arguments are used to uniquely identify the |
| 357 | + * scheduled event and must match those used when the |
| 358 | + * event was originally scheduled. If the arguments |
| 359 | + * do not match exactly, WordPress will treat the |
| 360 | + * event as different, which can lead to duplicate |
| 361 | + * cron events being scheduled unintentionally, |
| 362 | + * excessive growth of the 'cron' option, and |
| 363 | + * database performance issues. |
337 | 364 | * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. |
338 | 365 | * @return bool|WP_Error True if event successfully rescheduled. False or WP_Error on failure. |
339 | 366 | */ |
@@ -454,8 +481,8 @@ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $ |
454 | 481 | * @param string $hook Action hook of the event. |
455 | 482 | * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. |
456 | 483 | * Although not passed to a callback, these arguments are used to uniquely identify the |
457 | | - * event, so they should be the same as those used when originally scheduling the event. |
458 | | - * Default empty array. |
| 484 | + * event, so they must match those used when originally scheduling the event. If the |
| 485 | + * arguments do not match exactly, the event will not be found. Default empty array. |
459 | 486 | * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. |
460 | 487 | * @return bool|WP_Error True if event successfully unscheduled. False or WP_Error on failure. |
461 | 488 | */ |
@@ -539,8 +566,8 @@ function wp_unschedule_event( $timestamp, $hook, $args = array(), $wp_error = fa |
539 | 566 | * @param string $hook Action hook, the execution of which will be unscheduled. |
540 | 567 | * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. |
541 | 568 | * Although not passed to a callback, these arguments are used to uniquely identify the |
542 | | - * event, so they should be the same as those used when originally scheduling the event. |
543 | | - * Default empty array. |
| 569 | + * event, so they must match those used when originally scheduling the event. If the |
| 570 | + * arguments do not match exactly, the event will not be found. Default empty array. |
544 | 571 | * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. |
545 | 572 | * @return int|false|WP_Error On success an integer indicating number of events unscheduled (0 indicates no |
546 | 573 | * events were registered with the hook and arguments combination), false or WP_Error |
@@ -825,8 +852,8 @@ function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) { |
825 | 852 | * @param string $hook Action hook of the event. |
826 | 853 | * @param array $args Optional. Array containing each separate argument to pass to the hook's callback function. |
827 | 854 | * Although not passed to a callback, these arguments are used to uniquely identify the |
828 | | - * event, so they should be the same as those used when originally scheduling the event. |
829 | | - * Default empty array. |
| 855 | + * event, so they must match those used when originally scheduling the event. If the |
| 856 | + * arguments do not match exactly, the event will not be found. Default empty array. |
830 | 857 | * @return int|false The Unix timestamp (UTC) of the next time the event will occur. False if the event doesn't exist. |
831 | 858 | */ |
832 | 859 | function wp_next_scheduled( $hook, $args = array() ) { |
|
0 commit comments