wp_delete_application_password хук-событиеWP 5.6.0

Fires when an application password is deleted.

Использование

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(массив)
The data about the application password.

Список изменений

С версии 5.6.0 Введена.

Где вызывается хук

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 );

Где используется хук в WordPress

Использование не найдено.