Description
Fires when an application password is created. } }
Occurrences
Filename | Line Number |
---|---|
wp-includes/class-wp-application-passwords.php | 152 |
Parameters
Type | Name | Description |
---|---|---|
int | $user_id | The user ID. |
array | $new_item | { The details about the created password. |
string | $new_password | The unhashed generated application password. |
array | $args | { Arguments used to create the application password. |
PHP Doc
/**
* Fires when an application password is created.
*
* @since 5.6.0
*
* @param int $user_id The user ID.
* @param array $new_item {
* The details about the created password.
*
* @type string $uuid The unique identifier for the application password.
* @type string $app_id A UUID provided by the application to uniquely identify it.
* @type string $name The name of the application password.
* @type string $password A one-way hash of the password.
* @type int $created Unix timestamp of when the password was created.
* @type null $last_used Null.
* @type null $last_ip Null.
* }
* @param string $new_password The unhashed generated application password.
* @param array $args {
* Arguments used to create the application password.
*
* @type string $name The name of the application password.
* @type string $app_id A UUID provided by the application to uniquely identify it.
* }
*/