Alert: 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.

WP_Recovery_Mode_Key_Service::remove_key() WordPress Method

WP_Recovery_Mode_Key_Service::remove_key() is a method used to remove a user's recovery mode key. This is typically used when a user's account is no longer needed, or if the user needs to be removed from the recovery mode key service.

WP_Recovery_Mode_Key_Service::remove_key( string $token ) #

Removes a used recovery key.


Parameters

$token

(string)(Required)The token used when generating a recovery mode key.


Top ↑

Source

File: wp-includes/class-wp-recovery-mode-key-service.php

	private function remove_key( $token ) {

		$records = $this->get_keys();

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

		unset( $records[ $token ] );

		$this->update_keys( $records );
	}


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.