WP_Recovery_Mode_Key_Service::remove_key

Advertisement

Private Access Private Access

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.

Summery Summery

Removes a used recovery key.

Syntax Syntax

WP_Recovery_Mode_Key_Service::remove_key( string $token )

Parameters Parameters

$token

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

Source 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 );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.