WC_Product::set_total_sales PHP Méthode

set_total_sales() public méthode

Set number total of sales.
Since: 2.7.0
public set_total_sales ( integer $total )
$total integer Total of sales.
    public function set_total_sales($total)
    {
        $this->set_prop('total_sales', absint($total));
    }
WC_Product