WordPress at a glance
function is not described

WP_Application_Passwords::set_user_application_passwords() protected WP 5.6.0

Sets a users application passwords.

{} It's a method of the class: WP_Application_Passwords{}

No Hooks.

Return

true|false. Null. Nothing.

Usage

$result = WP_Application_Passwords::set_user_application_passwords( $user_id, $passwords );
$user_id(int) (required)
User ID.
$passwords(array) (required)
Application passwords.

Changelog

Since 5.6.0 Introduced.

Code of WP_Application_Passwords::set_user_application_passwords() WP 5.7

<?php
protected static function set_user_application_passwords( $user_id, $passwords ) {
	return update_user_meta( $user_id, static::USERMETA_KEY_APPLICATION_PASSWORDS, $passwords );
}