Yoast\WP\SEO\Expiring_Store\Application

Expiring_Store::get_for_user │ public │ Yoast 1.0

Gets a value scoped to a user.

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

Хуков нет.

Возвращает

scalar|array<string|int|float|bool|array|null>. The stored value.

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

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

Код Expiring_Store::get_for_user() Yoast 28.9

public function get_for_user( string $key, int $user_id = 0 ) {
	return $this->do_get( $this->prefix_for_user( $key, $user_id ) );
}