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_id

The user ID.

$new_item

The details about the created password.<br>

  • 'uuid'
    (string) The unique identifier for the application password.<br>
  • 'app_id'
    (string) A UUID provided by the application to uniquely identify it.<br>
  • 'name'
    (string) The name of the application password.<br>
  • 'password'
    (string) A one-way hash of the password.<br>
  • 'created'
    (int) Unix timestamp of when the password was created.<br>
  • 'last_used'
    (null) Null.<br>
  • 'last_ip'
    (null) Null.<br>

$new_password

The unhashed generated application password.

$args

Arguments used to create the application password.<br>

  • 'name'
    (string) The name of the application password.<br>
  • 'app_id'
    (string) A UUID provided by the application to uniquely identify it.<br>


Source

File: wp-includes/class-wp-application-passwords.php

View on GitHub


Changelog

Changelog
Version Description
5.6.0 Introduced.