delete_user_form WordPress Action Hook

The delete_user_form hook is used to create a form for deleting a user. This form will ask for confirmation before the user is deleted.

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

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


Parameters

$current_user

(WP_User)WP_User object for the current user.

$userids

(int[])Array of IDs for users being deleted.


Top ↑

Source

File: wp-admin/users.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0The $userids parameter was added.
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.