woocommerce_ajax_add_order_item_meta action-hookWC 1.0

We do not perform any stock operations here because they will be handled when order is moved to a status where stock operations are applied (like processing, completed etc).

Usage

add_action( 'woocommerce_ajax_add_order_item_meta', 'wp_kama_woocommerce_ajax_add_order_item_meta_action', 10, 3 );

/**
 * Function for `woocommerce_ajax_add_order_item_meta` action-hook.
 * 
 * @param  $item_id 
 * @param  $item    
 * @param  $order   
 *
 * @return void
 */
function wp_kama_woocommerce_ajax_add_order_item_meta_action( $item_id, $item, $order ){

	// action...
}
$item_id
-
$item
-
$order
-

Where the hook is called

WC_AJAX::maybe_add_order_item()
woocommerce_ajax_add_order_item_meta
woocommerce/includes/class-wc-ajax.php 961
do_action( 'woocommerce_ajax_add_order_item_meta', $item_id, $item, $order );

Where the hook is used in WooCommerce

Usage not found.