|
@@ 917-920 (lines=4) @@
|
| 914 |
|
$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() ); |
| 915 |
|
$item->save(); |
| 916 |
|
|
| 917 |
|
if ( has_action( 'woocommerce_order_add_product' ) ) { |
| 918 |
|
_deprecated_function( 'Action: woocommerce_order_add_product', '2.7', 'Use woocommerce_new_order_item action instead.' ); |
| 919 |
|
do_action( 'woocommerce_order_add_product', $this->get_id(), $item->get_id(), $product, $qty, $args ); |
| 920 |
|
} |
| 921 |
|
|
| 922 |
|
return $item->get_id(); |
| 923 |
|
} |
|
@@ 1018-1021 (lines=4) @@
|
| 1015 |
|
$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() ); |
| 1016 |
|
$item->save(); |
| 1017 |
|
|
| 1018 |
|
if ( has_action( 'woocommerce_order_add_shipping' ) ) { |
| 1019 |
|
_deprecated_function( 'Action: woocommerce_order_add_shipping', '2.7', 'Use woocommerce_new_order_item action instead.' ); |
| 1020 |
|
do_action( 'woocommerce_order_add_shipping', $this->get_id(), $item->get_id(), $shipping_rate ); |
| 1021 |
|
} |
| 1022 |
|
|
| 1023 |
|
return $item->get_id(); |
| 1024 |
|
} |
|
@@ 1046-1049 (lines=4) @@
|
| 1043 |
|
$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() ); |
| 1044 |
|
$item->save(); |
| 1045 |
|
|
| 1046 |
|
if ( has_action( 'woocommerce_order_add_fee' ) ) { |
| 1047 |
|
_deprecated_function( 'Action: woocommerce_order_add_fee', '2.7', 'Use woocommerce_new_order_item action instead.' ); |
| 1048 |
|
do_action( 'woocommerce_order_add_fee', $this->get_id(), $item->get_id(), $fee ); |
| 1049 |
|
} |
| 1050 |
|
|
| 1051 |
|
return $item->get_id(); |
| 1052 |
|
} |