WC_Customer::get_order_count()publicWC 1.0

Return the number of orders this customer has.

Method of the class: WC_Customer{}

No Hooks.

Return

Int.

Usage

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

WC_Customer::get_order_count() code WC 8.7.0

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