WC_Abstract_Legacy_Order::record_product_sales
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.
Record sales.
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->record_product_sales();
Changelog
| Deprecated since | 3.0.0 |
WC_Abstract_Legacy_Order::record_product_sales() WC Abstract Legacy Order::record product sales code WC 10.6.2
public function record_product_sales() {
wc_deprecated_function( 'WC_Order::record_product_sales', '3.0', 'wc_update_total_sales_counts' );
wc_update_total_sales_counts( $this->get_id() );
}