Title: wp_update_application_password
Published: December 9, 2020
Last modified: May 20, 2026

---

# do_action( ‘wp_update_application_password’, int $user_id, array $item, array $update )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#wp--skip-link--target)

Fires when an application password is updated.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#parameters)󠁿

 `$user_id`int

The user ID.

`$item`array

The updated application password details.

 * `uuid` string
 * The unique identifier for the application password.
 * `app_id` string
 * A UUID provided by the application to uniquely identify it.
 * `name` string
 * The name of the application password.
 * `password` string
 * A one-way hash of the password.
 * `created` int
 * Unix timestamp of when the password was created.
 * `last_used` int|null
 * The Unix timestamp of the GMT date the application password was last used.
 * `last_ip` string|null
 * The IP address the application password was last used by.

`$update`array

The information to update.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#source)󠁿

    ```php
    do_action( 'wp_update_application_password', $user_id, $item, $update );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-application-passwords.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-application-passwords.php#L319)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-application-passwords.php#L319-L319)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Application_Passwords::update_application_password()](https://developer.wordpress.org/reference/classes/wp_application_passwords/update_application_password/)`wp-includes/class-wp-application-passwords.php` |

Updates an application password.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_update_application_password/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.8.0](https://developer.wordpress.org/reference/since/6.8.0/) | The password is now hashed using [wp_fast_hash()](https://developer.wordpress.org/reference/functions/wp_fast_hash/) instead of phpass.
 Existing passwords may still be hashed using phpass. | 
| [5.6.0](https://developer.wordpress.org/reference/since/5.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_update_application_password%2F)
before being able to contribute a note or feedback.