GC_Application_Passwords::get_user_application_password()
最后更新于:2021-11-26 09:14:04
GC_Application_Passwords::get_user_application_password( int$user_id, string$uuid)Gets a user’s application password with the given uuid.
参数
- $user_id
-
(int) (Required) User ID.
- $uuid
-
(string) (Required) The password’s uuid.
响应
(array|null) The application password if found, null otherwise.
源文件
文件: gc-includes/class-gc-application-passwords.php
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;
}