wppaste
WordPress

do_action( 'wp_update_application_password', int $user_id, array $item, array $update )

Since
5.6.0, 6.8.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.
}
  • $uuidstring

    The unique identifier for the application password.
  • $app_idstring

    A UUID provided by the application to uniquely identify it.
  • $namestring

    The name of the application password.
  • $passwordstring

    A one-way hash of the password.
  • $createdint

    Unix timestamp of when the password was created.
  • $last_usedint|null

    The Unix timestamp of the GMT date the application password was last used.
  • $last_ipstring|null

    The IP address the application password was last used by.
$updatearray
The information to update.

Fired at · 1

  • wp-includes/class-wp-application-passwords.php:319WP_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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

6.8.0
The password is now hashed using wp_fast_hash() instead of phpass.
Existing passwords may still be hashed using phpass.from the docblock
5.6.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.9.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.