WC_Queue_Interface::get_next()
Get the date and time for the next scheduled occurrence of an action with a given hook (an optionally that matches certain args and group), if any.
Method of the class: WC_Queue_Interface{}
No Hooks.
Return
WC_DateTime|null
. The date and time for the next occurrence, or null if there is no pending, scheduled action for the given hook
Usage
$WC_Queue_Interface = new WC_Queue_Interface(); $WC_Queue_Interface->get_next( $hook, $args, $group );
- $hook(string) (required)
- The hook that the job will trigger.
- $args(array)
- Filter to a hook with matching args that will be passed to the job when it runs.
Default: null - $group(string)
- Filter to only actions assigned to a specific group.
Default: ''
WC_Queue_Interface::get_next() WC Queue Interface::get next code WC 9.5.1
public function get_next( $hook, $args = null, $group = '' );