WP_Application_Passwords::set_user_application_passwords( int $user_id, array $passwords )
Sets a users application passwords.
Parameters
- $user_id
-
(int) (Required) User ID.
- $passwords
-
(array) (Required) Application passwords.
Return
(bool)
Source
File: wp-includes/class-wp-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 ); }
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_application_passwords/set_user_application_passwords