Gets a user’s application password with the given UUID.
$user_idintrequired
$uuidstringrequired
uuid stringapp_id stringname stringpassword stringcreated intlast_used int|nulllast_ip string|nullpublic 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;
}
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_application_passwords/get_user_application_password