woocommerce_checkout_create_order_shipping_item
Action hook to adjust item before save.
Usage
add_action( 'woocommerce_checkout_create_order_shipping_item', 'wp_kama_woocommerce_checkout_create_order_shipping_item_action', 10, 4 ); /** * Function for `woocommerce_checkout_create_order_shipping_item` action-hook. * * @param $item * @param $package_key * @param $package * @param $order * * @return void */ function wp_kama_woocommerce_checkout_create_order_shipping_item_action( $item, $package_key, $package, $order ){ // action... }
- $item
- -
- $package_key
- -
- $package
- -
- $order
- -
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
woocommerce_checkout_create_order_shipping_item
woocommerce/includes/class-wc-checkout.php 629
do_action( 'woocommerce_checkout_create_order_shipping_item', $item, $package_key, $package, $order );