WC_Queue_Interface::get_next()publicWC 1.0

Get the date and time for the next scheduled occurence of an action with a given hook (an optionally that matches certain args and group), if any.

Метод класса: WC_Queue_Interface{}

Хуков нет.


WC_DateTime|null. The date and time for the next occurrence, or null if there is no pending, scheduled action for the given hook


$WC_Queue_Interface = new WC_Queue_Interface();
$WC_Queue_Interface->get_next( $hook, $args, $group );
$hook(строка) (обязательный)
The hook that the job will trigger.
Filter to a hook with matching args that will be passed to the job when it runs.
По умолчанию: null
Filter to only actions assigned to a specific group.
По умолчанию: ''

Код WC_Queue_Interface::get_next() WC 9.0.2

public function get_next( $hook, $args = null, $group = '' );