WP_Recovery_Mode_Key_Service::remove_key( string $token )

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Removes a used recovery key.

Parameters

$tokenstringrequired
The token used when generating a recovery mode key.

Source

private function remove_key( $token ) {

	$records = $this->get_keys();

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

	unset( $records[ $token ] );

	$this->update_keys( $records );
}

Changelog

VersionDescription
5.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.