WordPress at Your Fingertips
function is not described

WC_Customer_Data_Store_Session::get_order_count() public WC 3.0.0

Return the number of orders this customer has.

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

No Hooks.

Return

Int.

Usage

$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session();
$WC_Customer_Data_Store_Session->get_order_count( $customer );
$customer(WC_Customer) (required) (passed by reference — &)
Customer object.

Changelog

Since 3.0.0 Introduced.

Code of WC_Customer_Data_Store_Session::get_order_count() WC 5.8.0

public function get_order_count( &$customer ) {
	return 0;
}