WP_Application_Passwords::set_user_application_passwords( int $user_id, array $passwords ): bool

In this article

Sets a user’s application passwords.

Parameters

$user_idintrequired
User ID.
$passwordsarrayrequired
Application passwords.

Return

bool

Source

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

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.