ActionScheduler_Store::has_pending_actions_due()publicWC 1.0

Check if there are any pending scheduled actions due to run.

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

Хуков нет.

Возвращает

Строку.

Использование

$ActionScheduler_Store = new ActionScheduler_Store();
$ActionScheduler_Store->has_pending_actions_due();

Код ActionScheduler_Store::has_pending_actions_due() WC 7.1.0

public function has_pending_actions_due() {
	$pending_actions = $this->query_actions( array(
		'date'    => as_get_datetime_object(),
		'status'  => ActionScheduler_Store::STATUS_PENDING,
		'orderby' => 'none',
	) );

	return ! empty( $pending_actions );
}