deleted_user

deleted_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('deleted_user') is found 2 times:

  • /wp-admin/includes/ms.php line 211
     
    	clean_user_cache( $user );
    
    	/** This action is documented in wp-admin/includes/user.php */
    	do_action( 'deleted_user', $id, null, $user );
    
    	return true;
    }
    
    /**
     * Checks whether a site has used its allotted upload space.
    
  • /wp-admin/includes/user.php line 463
    	 * @param int|null $reassign ID of the user to reassign posts and links to.
    	 *                           Default null, for no reassignment.
    	 * @param WP_User  $user     WP_User object of the deleted user.
    	 */
    	do_action( 'deleted_user', $id, $reassign, $user );
    
    	return true;
    }
    
    /**
     * Remove all capabilities from user.
    

See this hook used in plugins: