[wp-trac] [WordPress Trac] #51605: Cron hook does not receive $args array

WordPress Trac noreply at wordpress.org
Fri Oct 23 04:43:27 UTC 2020


#51605: Cron hook does not receive $args array
--------------------------+-------------------------------------
 Reporter:  chadreitsma   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Cron API      |     Version:  5.5.1
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:  docs, coding-standards
--------------------------+-------------------------------------

Comment (by chadreitsma):

 Thanks John, that makes sense. You're right, it is hard to explain
 succinctly, haha.

 I have attempted to make it a little more understandable. For your
 consideration...

 Current description:
 (array) (Optional) Array containing each separate argument to pass to the
 hook's callback function. Default value: array()


 New description:
 (array) (Optional) Array containing arguments to pass to the hook's
 callback function. Each  value in the array is passed as a separate
 argument to the callback. The array keys are ignored. Default value:
 array()

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


More information about the wp-trac mailing list