wc_get_customer_order_count( int $user_id )

Get total orders by customer.


Description Description


Parameters Parameters

$user_id

(Required) User ID.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/wc-user-functions.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.