wppaste
WordPress

do_action( 'delete_user_form', WP_User $current_user, int[] $user_ids )

Since
4.0.0, 4.5.0
Fires at the end of the delete users form prior to the confirm button.

Compatibility

WordPress
since 4.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$current_userWP_User
WP_User object for the current user.
$user_idsint[]
Array of IDs for users being deleted.

Where this hook fires · 2

  • wp-admin/includes/ms.php:985confirm_delete_users()
  • wp-admin/users.php:448file scope

Source code

			 * @since 4.0.0			 * @since 4.5.0 The `$user_ids` parameter was added.			 *			 * @param WP_User $current_user WP_User object for the current user.			 * @param int[]   $user_ids     Array of IDs for users being deleted.			 */			do_action( 'delete_user_form', $current_user, $user_ids );			?>			<input type="hidden" name="action" value="dodelete" />			<?php submit_button( __( 'Confirm Deletion' ), 'primary' ); ?> 		<?php else : ?> 

Changelog

Introduced in 4.0.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

4.5.0
The $user_ids parameter was added.from the docblock
4.0.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.