WP_Application_Passwords::get_user_application_password( int $user_id, string $uuid ): array|null

Gets a user’s application password with the given UUID.


Parameters

$user_id int Required
User ID.
$uuid string Required
The password's UUID.

Top ↑

Return

array|null The application password if found, null otherwise.


Top ↑

Source

File: wp-includes/class-wp-application-passwords.php. View all references

public static function get_user_application_password( $user_id, $uuid ) {
	$passwords = static::get_user_application_passwords( $user_id );

	foreach ( $passwords as $password ) {
		if ( $password['uuid'] === $uuid ) {
			return $password;
		}
	}

	return null;
}


Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes

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