GC_Application_Passwords::set_user_application_passwords()
最后更新于:2021-11-26 09:14:40
GC_Application_Passwords::set_user_application_passwords( int$user_id, array$passwords)Sets a users application passwords.
参数
- $user_id
-
(int) (Required) User ID.
- $passwords
-
(array) (Required) Application passwords.
响应
(bool)
源文件
文件: gc-includes/class-gc-application-passwords.php
protected static function set_user_application_passwords( $user_id, $passwords ) {
return update_user_meta( $user_id, static::USERMETA_KEY_APPLICATION_PASSWORDS, $passwords );
}