WordPress at a glance
функция не описана

WP_Recovery_Mode_Key_Service::remove_key() private WP 5.2.0

Removes a used recovery key.

It's a method of the class: WP_Recovery_Mode_Key_Service{}

Хуков нет.

Возвращает

Null. Ничего.

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

// private - for code of main (parent) class only
$result = $this->remove_key( $token );
$token(string) (required)
The token used when generating a recovery mode key.

Changelog

Since 5.2.0 Introduced.

Код WP_Recovery_Mode_Key_Service::remove_key() WP 5.5.1

<?php
private function remove_key( $token ) {

	$records = $this->get_keys();

	if ( ! isset( $records[ $token ] ) ) {
		return;
	}

	unset( $records[ $token ] );

	$this->update_keys( $records );
}