WC_Product::set_total_sales( int $total )
Set number total of sales.
Description Description
Parameters Parameters
- $total
-
(Required) Total of sales.
Source Source
File: includes/abstracts/abstract-wc-product.php
public function set_total_sales( $total ) {
$this->set_prop( 'total_sales', absint( $total ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |