Gets a user’s application password with the given UUID.
$user_id
intrequiredUser ID.
$uuid
stringrequiredThe password’s UUID.
array|null The application password if found, null otherwise.
uuid
stringThe unique identifier for the application password.
app_id
stringA UUID provided by the application to uniquely identify it.
name
stringThe name of the application password.
password
stringA one-way hash of the password.
created
intUnix timestamp of when the password was created.
last_used
int|nullThe Unix timestamp of the GMT date the application password was last used.
last_ip
string|nullThe IP address the application password was last used by.
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;
}
View all references View on Trac View on GitHub
Version | Description |
---|
5.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.