wpmu_delete_user WordPress Action Hook

The wpmu_delete_user hook is used to delete a user from a WordPress Multisite installation. This hook is called when a user is deleted from the network admin interface or when the user's account is deleted from the site.

do_action( 'wpmu_delete_user', int $id, WP_User $user ) #

Fires before a user is deleted from the network.


Parameters

$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.


Top ↑

Source

File: wp-admin/includes/ms.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)MU (3.0.0)
5.5.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.