wpmu_delete_user

wpmu_delete_user

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('wpmu_delete_user') is found 1 times:

  • /wp-admin/includes/ms.php line 173
    	 *
    	 * @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.
    	 */
    	do_action( 'wpmu_delete_user', $id, $user );
    
    	$blogs = get_blogs_of_user( $id );
    
    	if ( ! empty( $blogs ) ) {
    		foreach ( $blogs as $blog ) {
    			switch_to_blog( $blog->userblog_id );
    

See this hook used in plugins: