[wp-trac] [WordPress Trac] #27087: wp_schedule_event will not accept class hook
WordPress Trac
noreply at wordpress.org
Mon Feb 10 19:49:29 UTC 2014
#27087: wp_schedule_event will not accept class hook
----------------------------+-----------------------------
Reporter: jonshipman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version: 3.8.1
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
wp_schedule_event will not accept array() for the hook (must be string).
As such, wp_schedule_event( time(), 'daily', array($this,'hook') ); will
not work, however, moving the hook method outside of the class will work
as the $hook is no longer an array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27087>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list