do_action( 'wp_update_application_password', int $user_id, array $item, array $update )
- Since
- 5.6.0
Fires when an application password is updated.
Parameters
$user_idint- The user ID.
$itemarray- { The updated application password details.
@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 int|null $last_used The Unix timestamp of the GMT date the application password was last used.
@type string|null $last_ip The IP address the application password was last used by.
}$uuidstringThe unique identifier for the application password.$app_idstringA UUID provided by the application to uniquely identify it.$namestringThe name of the application password.$passwordstringA one-way hash of the password.$createdintUnix timestamp of when the password was created.$last_usedint|nullThe Unix timestamp of the GMT date the application password was last used.$last_ipstring|nullThe IP address the application password was last used by.
$updatearray- The information to update.
Fired at · 1
wp-includes/class-wp-application-passwords.php:314WP_Application_Passwords::update_application_password()
Source
* @type int $created Unix timestamp of when the password was created. * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used. * @type string|null $last_ip The IP address the application password was last used by. * } * @param array $update The information to update. */ do_action( 'wp_update_application_password', $user_id, $item, $update ); return true; } return new WP_Error( 'application_password_not_found', __( 'Could not find an application password with that id.' ) ); }History
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.