Action hook 'application_password_did_authenticate'

in WP Core File wp-includes/user.php at line 497

View Source

application_password_did_authenticate

Action Hook
Description
Fires after an application password was used for authentication.

Hook Information

File Location wp-includes/user.php View on GitHub
Hook Type Action
Line Number 497

Hook Parameters

Type Name Description
WP_User $user The user who was authenticated.
array $item The application password used.

Usage Examples

Basic Usage
<?php
// Hook into application_password_did_authenticate
add_action('application_password_did_authenticate', 'my_custom_function', 10, 2);

function my_custom_function($user, $item) {
    // Your custom code here
}

Source Code Context

wp-includes/user.php:497 - How this hook is used in WordPress core
<?php
 492  		 * @since 5.6.0
 493  		 *
 494  		 * @param WP_User $user The user who was authenticated.
 495  		 * @param array   $item The application password used.
 496  		 */
 497  		do_action( 'application_password_did_authenticate', $user, $item );
 498  
 499  		return $user;
 500  	}
 501  
 502  	$error = new WP_Error(

PHP Documentation

<?php
/**
		 * Fires after an application password was used for authentication.
		 *
		 * @since 5.6.0
		 *
		 * @param WP_User $user The user who was authenticated.
		 * @param array   $item The application password used.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.