application_password_did_authenticate
Fires after an application password was used for authentication.
Usage
add_action( 'application_password_did_authenticate', 'wp_kama_application_password_did_authenticate_action', 10, 2 );
/**
* Function for `application_password_did_authenticate` action-hook.
*
* @param WP_User $user The user who was authenticated.
* @param array $item The application password used.
*
* @return void
*/
function wp_kama_application_password_did_authenticate_action( $user, $item ){
// action...
}
- $user(WP_User)
- The user who was authenticated.
- $item(array)
- The application password used.
Changelog
| Since 5.6.0 | Introduced. |
Where the hook is called
application_password_did_authenticate
wp-includes/user.php 497
do_action( 'application_password_did_authenticate', $user, $item );
Where the hook is used in WordPress
wp-includes/default-filters.php 339
add_action( 'application_password_did_authenticate', 'rest_application_password_collect_status', 10, 2 );