wpmu_delete_user хук-событиеWP 3.0.0

Fires before a user is deleted from the network.

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

add_action( 'wpmu_delete_user', 'wp_kama_wpmu_delete_user_action', 10, 2 );

/**
 * Function for `wpmu_delete_user` action-hook.
 * 
 * @param int     $id   ID of the user about to be deleted from the network.
 * @param WP_User $user WP_User object of the user about to be deleted from the network.
 *
 * @return void
 */
function wp_kama_wpmu_delete_user_action( $id, $user ){

	// action...
}
$id(int)
ID of the user about to be deleted from the network.
$user(WP_User)
WP_User object of the user about to be deleted from the network.

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

С версии 3.0.0 Введена.
С версии 5.5.0 Added the $user parameter.

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

wpmu_delete_user()
wpmu_delete_user
wp-admin/includes/ms.php 173
do_action( 'wpmu_delete_user', $id, $user );

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

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