Yoast\WP\SEO\Expiring_Store\Application
Expiring_Store::get_for_user
Gets a value scoped to a user.
Метод класса: Expiring_Store{}
Хуков нет.
Возвращает
scalar|Массив<Строку|int|float|true|false|Массив|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() Expiring Store::get for user Yoast 27.7
public function get_for_user( string $key, int $user_id = 0 ) {
return $this->do_get( $this->prefix_for_user( $key, $user_id ) );
}