woocommerce_rest_delete_customer action-hookWC 1.0

Fires after a customer is deleted via the REST API.

Usage

add_action( 'woocommerce_rest_delete_customer', 'wp_kama_woocommerce_rest_delete_customer_action', 10, 3 );

/**
 * Function for `woocommerce_rest_delete_customer` action-hook.
 * 
 * @param WP_User          $user_data User data.
 * @param WP_REST_Response $response  The response returned from the API.
 * @param WP_REST_Request  $request   The request sent to the API.
 *
 * @return void
 */
function wp_kama_woocommerce_rest_delete_customer_action( $user_data, $response, $request ){

	// action...
}
$user_data(WP_User)
User data.
$response(WP_REST_Response)
The response returned from the API.
$request(WP_REST_Request)
The request sent to the API.

Where the hook is called

WC_REST_Customers_V1_Controller::delete_item()
woocommerce_rest_delete_customer
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php 505
do_action( 'woocommerce_rest_delete_customer', $user_data, $response, $request );

Where the hook is used in WooCommerce

Usage not found.