Yoast\WP\SEO\MyYoast_Client\Infrastructure\Registration
Client_Registration::delete_local_data
Deletes all local registration data (credentials, key pairs, caches).
Метод класса: Client_Registration{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Client_Registration = new Client_Registration(); $Client_Registration->delete_local_data(): void;
Код Client_Registration::delete_local_data() Client Registration::delete local data Yoast 28.3
public function delete_local_data(): void {
$this->forget_registration();
$this->key_pair_manager->delete_key_pair( Key_Pair_Manager::PURPOSE_REGISTRATION );
$this->key_pair_manager->delete_key_pair( Key_Pair_Manager::PURPOSE_DPOP );
$this->discovery_client->invalidate_cache();
$suffix = $this->issuer_config->get_issuer_key();
\delete_transient( 'wpseo_myyoast_jwks_' . $suffix );
\delete_transient( 'wpseo_myyoast_dpop_nonce_' . $suffix );
}