ActionScheduler_QueueCleaner::has_pending_continuation │ private │ WC 1.0

Whether a continuation of the cleanup is already queued.

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

Хуков нет.

Возвращает

bool.

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

// private - только в коде основоного (родительского) класса
$result = $this->has_pending_continuation();

Код ActionScheduler_QueueCleaner::has_pending_continuation() WC 11.3.0

private function has_pending_continuation() {
	$pending = as_get_scheduled_actions(
		array(
			'hook'     => self::CONTINUE_SCHEDULED_CLEANER_HOOK,
			'status'   => ActionScheduler_Store::STATUS_PENDING,
			'per_page' => 1,
		),
		'ids'
	);

	return ! empty( $pending );
}