Yoast\WP\SEO\Expiring_Store\Application

Expiring_Store::do_hasprivateYoast 1.0

Checks whether a non-expired value exists for the given prefixed key.

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

Хуков нет.

Возвращает

true|false.

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

// private - только в коде основоного (родительского) класса
$result = $this->do_has( $prefixed_key ): bool;
$prefixed_key(строка) (обязательный)
The prefixed key.

Код Expiring_Store::do_has() Yoast 27.7

private function do_has( string $prefixed_key ): bool {
	return $this->repository->find( $prefixed_key, $this->current_datetime() ) !== null;
}