woocommerce_add_order_item()
Deprecated from version 3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
No Hooks.
Return
null
. Nothing (null).
Usage
woocommerce_add_order_item( $order_id, $item );
- $order_id (required)
- -
- $item (required)
- -
Changelog
Deprecated since | 3.0 |
woocommerce_add_order_item() woocommerce add order item code WC 9.6.1
function woocommerce_add_order_item( $order_id, $item ) { wc_deprecated_function( __FUNCTION__, '3.0', 'wc_add_order_item' ); return wc_add_order_item( $order_id, $item ); }