woocommerce_checkout_create_order_line_item action-hookWC 3.0.0

Action hook to adjust item before save.

Usage

add_action( 'woocommerce_checkout_create_order_line_item', 'wp_kama_woocommerce_checkout_create_order_line_item_action', 10, 4 );

/**
 * Function for `woocommerce_checkout_create_order_line_item` action-hook.
 * 
 * @param  $item          
 * @param  $cart_item_key 
 * @param  $values        
 * @param  $order         
 *
 * @return void
 */
function wp_kama_woocommerce_checkout_create_order_line_item_action( $item, $cart_item_key, $values, $order ){

	// action...
}
$item
-
$cart_item_key
-
$values
-
$order
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WC_Checkout::create_order_line_items()
woocommerce_checkout_create_order_line_item
woocommerce/includes/class-wc-checkout.php 552
do_action( 'woocommerce_checkout_create_order_line_item', $item, $cart_item_key, $values, $order );

Where the hook is used in WooCommerce

Usage not found.