Yoast\WP\SEO\MyYoast_Client\Infrastructure\Crypto

Key_Pair_Manager::delete_key_pairpublicYoast 1.0

Deletes the key pair for the given purpose.

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

Хуков нет.

Возвращает

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

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

$Key_Pair_Manager = new Key_Pair_Manager();
$Key_Pair_Manager->delete_key_pair( $purpose ): void;
$purpose(строка) (обязательный)
One of the PURPOSE_* constants.

Код Key_Pair_Manager::delete_key_pair() Yoast 27.7

public function delete_key_pair( string $purpose ): void {
	unset( $this->cached_key_pairs[ $this->get_option_key( $purpose ) ] );
	\delete_option( $this->get_option_key( $purpose ) );
}