wp_create_application_password WordPress Action Hook

The wp_create_application_password hook is used to create an application password for a user. This hook is called when a user is creating an application password.

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

(int)The user ID.

$new_item

(array)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_password

(string)The unhashed generated application password.

$args

(array)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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.