WC_Product::get_total_sales
Get number total of sales.
Method of the class: WC_Product{}
No Hooks.
Returns
Int.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_total_sales( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
Changelog
| Since 3.0.0 | Introduced. |
WC_Product::get_total_sales() WC Product::get total sales code WC 10.6.2
public function get_total_sales( $context = 'view' ) {
return $this->get_prop( 'total_sales', $context );
}