ActionScheduler_Store::has_pending_actions_due │ public │ WC 1.0

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

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

Хуков нет.

Возвращает

string.

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

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

Код ActionScheduler_Store::has_pending_actions_due() WC 11.3.0

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

	return ! empty( $pending_actions );
}