WC_Customer::get_order_count()publicWC 1.0

Return the number of orders this customer has.

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

Хуков нет.

Возвращает

Int.

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

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

Код WC_Customer::get_order_count() WC 8.7.0

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