Action hook 'rest_delete_user'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php at line 955

Description

Fires immediately after a user is deleted via the REST API.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 955

Parameters

Type Name Description
WP_User $user The user data.
WP_REST_Response $response The response returned from the API.
WP_REST_Request $request The request sent to the API.

PHP Doc

/**
		 * Fires immediately after a user is deleted via the REST API.
		 *
		 * @since 4.7.0
		 *
		 * @param WP_User          $user     The user data.
		 * @param WP_REST_Response $response The response returned from the API.
		 * @param WP_REST_Request  $request  The request sent to the API.
		 */