woocommerce_rest_remove_order_item action-hookWC 9.3.0.

Allow extensions be notified before the item is removed.

Usage

add_action( 'woocommerce_rest_remove_order_item', 'wp_kama_woocommerce_rest_remove_order_item_action' );

/**
 * Function for `woocommerce_rest_remove_order_item` action-hook.
 * 
 * @param WC_Order_Item $item The item object.
 *
 * @return void
 */
function wp_kama_woocommerce_rest_remove_order_item_action( $item ){

	// action...
}
$item(WC_Order_Item)
The item object.

Changelog

Since 9.3.0. Introduced.

Where the hook is called

WC_REST_Orders_Controller::remove_item()
woocommerce_rest_remove_order_item

Where the hook is used in WooCommerce

Usage not found.