WordPress.org

Ready to get started?Download WordPress

Codex

Plugin API/Action Reference/deleted user

Description

The deleted_user action/hook can be used to perform additional actions after a user is deleted. For example, you can delete rows from custom tables created by a plugin.

The hook passes one parameter: the user's ID.

This hook runs after a user is deleted. The hook delete_user (delete vs deleted) runs before a user is deleted. Choose the appropriate hook for your needs. If you need access to user meta or fields from the user table, use delete_user.

Usage

<?php add_action( 'deleted_user', 'function_name' ); ?>

where "function_name" is the name of the function to be called.

This page is marked as incomplete. You can help Codex by expanding it.