WordPress at a glance
function is not described

WP_Application_Passwords::get_user_application_password() public WP 5.6.0

Gets a user's application password with the given uuid.

{} It's a method of the class: WP_Application_Passwords{}

No Hooks.


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


$result = WP_Application_Passwords::get_user_application_password( $user_id, $uuid );
$user_id(int) (required)
User ID.
$uuid(string) (required)
The password's uuid.


Since 5.6.0 Introduced.

Code of WP_Application_Passwords::get_user_application_password() WP 5.7

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;