delete_user_form хук-событиеWP 4.0.0

Fires at the end of the delete users form prior to the confirm button.

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

add_action( 'delete_user_form', 'wp_kama_delete_user_form_action', 10, 2 );

/**
 * Function for `delete_user_form` action-hook.
 * 
 * @param WP_User $current_user WP_User object for the current user.
 * @param int[]   $userids      Array of IDs for users being deleted.
 *
 * @return void
 */
function wp_kama_delete_user_form_action( $current_user, $userids ){

	// action...
}
$current_user(WP_User)
WP_User object for the current user.
$userids(int[])
Array of IDs for users being deleted.

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

С версии 4.0.0 Введена.
С версии 4.5.0 The $userids parameter was added.

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

В файле: /wp-admin/users.php
delete_user_form
wp-admin/users.php 388
do_action( 'delete_user_form', $current_user, $userids );
wp-admin/includes/ms.php 989
do_action( 'delete_user_form', $current_user, $allusers );

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

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