WP_Recovery_Mode_Key_Service::clean_expired_keys( int $ttl )

In this article

Removes expired recovery mode keys.

Parameters

$ttlintrequired
Time in seconds for the keys to be valid for.

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.