Reference › WP_Application_Passwords WP_Application_Passwords::get_user_application_password ( int $user_id , string $uuid ): array | null
Since 5.6.0
Source wp-includes/class-wp-application-passwords.php:215Parameters Return Uses Used by Source History Gets a user's application password with the given UUID.
Parameters
$user_idint User ID.
$uuidstring The password's UUID. Return array | nullThe application password if found, null otherwise.$uuidstring
The unique identifier for the application password.
$app_idstring
A UUID provided by the application to uniquely identify it.
$namestring
The name of the application password.
$passwordstring
A one-way hash of the password.
$createdint
Unix timestamp of when the password was created.
$last_usedint | null
The Unix timestamp of the GMT date the application password was last used.
$last_ipstring | null
The IP address the application password was last used by.
Uses · 1 static::get_user_application_passwords() Source View on Trac ↗ View on GitHub ↗
215 public static function get_user_application_password ( $user_id , $uuid ) { 216 $passwords = static :: get_user_application_passwords ( $user_id ) ; 217 218 foreach ( $passwords as $password ) { 219 if ( $password [ 'uuid' ] === $uuid ) { 220 return $password ; 221 } 222 } 223 224 return null ; 225 } History Introduced in 5.6.0 . Unchanged from 6.7.7 through 7.1.0.
6.7.7 6.8.8 6.9.7 7.0.4 7.1.0 Signature, return type and hooks compared across 5 parsed releases.
About this page Parsed data Generated from the wordpress-develop 6.7.7 tag, from src/wp-includes/class-wp-application-passwords.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. Corrections Something wrong on this page? Report it and it gets fixed in the next regeneration.