wp_delete_application_password action-hookWP 5.6.0

Fires when an application password is deleted.

Usage

add_action( 'wp_delete_application_password', 'wp_kama_delete_application_password_action', 10, 2 );

/**
 * Function for `wp_delete_application_password` action-hook.
 * 
 * @param int   $user_id The user ID.
 * @param array $item    The data about the application password.
 *
 * @return void
 */
function wp_kama_delete_application_password_action( $user_id, $item ){

	// action...
}
$user_id(int)
The user ID.
$item(array)
The data about the application password.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

WP_Application_Passwords::delete_application_password()
wp_delete_application_password
WP_Application_Passwords::delete_all_application_passwords()
wp_delete_application_password
wp-includes/class-wp-application-passwords.php 348
do_action( 'wp_delete_application_password', $user_id, $item );
wp-includes/class-wp-application-passwords.php 377
do_action( 'wp_delete_application_password', $user_id, $item );

Where the hook is used in WordPress

Usage not found.