woocommerce_rest_delete_order_note action-hookWC 1.0

Fires after a order note is deleted or trashed via the REST API.

Usage

add_action( 'woocommerce_rest_delete_order_note', 'wp_kama_woocommerce_rest_delete_order_note_action', 10, 3 );

/**
 * Function for `woocommerce_rest_delete_order_note` action-hook.
 * 
 * @param WP_Comment       $note     The deleted or trashed order note.
 * @param WP_REST_Response $response The response data.
 * @param WP_REST_Request  $request  The request sent to the API.
 *
 * @return void
 */
function wp_kama_woocommerce_rest_delete_order_note_action( $note, $response, $request ){

	// action...
}
$note(WP_Comment)
The deleted or trashed order note.
$response(WP_REST_Response)
The response data.
$request(WP_REST_Request)
The request sent to the API.

Where the hook is called

WC_REST_Order_Notes_V1_Controller::delete_item()
woocommerce_rest_delete_order_note
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php 326
do_action( 'woocommerce_rest_delete_order_note', $note, $response, $request );

Where the hook is used in WooCommerce

Usage not found.