Yoast\WP\SEO\Expiring_Store\Application

Expiring_Store::has_for_userpublicYoast 1.0

Checks whether a non-expired value exists for a user-scoped key.

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

Хуков нет.

Возвращает

true|false.

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

$Expiring_Store = new Expiring_Store();
$Expiring_Store->has_for_user( $key, $user_id ): bool;
$key(строка) (обязательный)
The key.
$user_id(int)
The user ID.
По умолчанию: current user

Код Expiring_Store::has_for_user() Yoast 27.7

public function has_for_user( string $key, int $user_id = 0 ): bool {
	return $this->do_has( $this->prefix_for_user( $key, $user_id ) );
}