W3cubDocs

/WordPress

do_action( ‘wp_create_application_password’, int $user_id, array $new_item, string $new_password, array $args )

Fires when an application password is created.

Parameters

$user_idint
The user ID.
$new_itemarray
The details about the created password.
  • 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 null
    Null.
  • last_ip null
    Null.
$new_passwordstring
The generated application password in plain text.
$argsarray
Arguments used to create the application password.
  • name string
    The name of the application password.
  • app_id string
    A UUID provided by the application to uniquely identify it.

Source

do_action( 'wp_create_application_password', $user_id, $new_item, $new_password, $args );

Changelog

Version Description
5.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_create_application_password