WordPress at Your Fingertips
function is not described

wc_get_customer_order_count() WC 1.0

Get total orders by customer.

No Hooks.

Return

Int.

Usage

wc_get_customer_order_count( $user_id );
$user_id(int) (required)
User ID.

Code of wc_get_customer_order_count() WC 6.1.0

function wc_get_customer_order_count( $user_id ) {
	$customer = new WC_Customer( $user_id );
	return $customer->get_order_count();
}