WC_Product::get_total_sales()
Get number total of sales.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
int
.
Использование
$WC_Product = new WC_Product(); $WC_Product->get_total_sales( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Product::get_total_sales() WC Product::get total sales WC 9.6.2
public function get_total_sales( $context = 'view' ) { return $this->get_prop( 'total_sales', $context ); }