WordPress at a glance
function is not described

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{}

No Hooks.

Return

null. Nothing.

Usage

// 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.

Code of WP_Recovery_Mode_Key_Service::remove_key() WP 5.7.2

<?php
private function remove_key( $token ) {

	$records = $this->get_keys();

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

	unset( $records[ $token ] );

	$this->update_keys( $records );
}