WC_Abstract_Legacy_Order::reduce_order_stock
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Reduce stock levels for all line items in the order.
Method of the class: WC_Abstract_Legacy_Order{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order(); $WC_Abstract_Legacy_Order->reduce_order_stock();
Changelog
Deprecated since | 3.0.0 |
WC_Abstract_Legacy_Order::reduce_order_stock() WC Abstract Legacy Order::reduce order stock code WC 9.8.5
public function reduce_order_stock() { wc_deprecated_function( 'WC_Order::reduce_order_stock', '3.0', 'wc_reduce_stock_levels' ); wc_reduce_stock_levels( $this->get_id() ); }