WP_Application_Passwords::set_user_application_passwords() WordPress Method
The WP_Application_Passwords::set_user_application_passwords() method is used to add, update, or delete a user's application passwords. This is useful for when you need to give a user access to a third-party application that needs to authenticate with WordPress.
WP_Application_Passwords::set_user_application_passwords( int $user_id, array $passwords ) #
Sets a user’s 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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |