WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Action_Queue::get_next() public WC 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_Action_Queue{}

Хуков нет.

Возвращает

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

Код WC_Action_Queue::get_next() WC 4.5.2

woocommerce/includes/queue/class-wc-action-queue.php
<?php
public function get_next( $hook, $args = null, $group = '' ) {

	$next_timestamp = as_next_scheduled_action( $hook, $args, $group );

	if ( $next_timestamp ) {
		return new WC_DateTime( "@{$next_timestamp}", new DateTimeZone( 'UTC' ) );
	}

	return null;
}