Yoast\WP\SEO\Expiring_Store\Application

Expiring_Store::delete_for_userpublicYoast 1.0

Deletes a value scoped to a user.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код Expiring_Store::delete_for_user() Yoast 27.7

public function delete_for_user( string $key, int $user_id = 0 ): void {
	$this->repository->delete( $this->prefix_for_user( $key, $user_id ) );
}