WordPress at Your Fingertips
function is not described

WC_Customer::get_order_count() public WC 1.0

Return the number of orders this customer has.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

Int.

Usage

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

Code of WC_Customer::get_order_count() WC 5.9.0

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