WC_Customer::get_order_count │ public │ WC 1.0

Return the number of orders this customer has.

Метод класса: WC_Customer{}

Хуков нет.

Возвращает

integer.

Использование

$WC_Customer = new WC_Customer();
$WC_Customer->get_order_count();

Код WC_Customer::get_order_count() WC 11.3.0

public function get_order_count() {
	return $this->data_store->get_order_count( $this );
}