WC_Customer_Data_Store_Interface::get_order_count()publicWC 1.0

Return the number of orders this customer has.

Method of the class: WC_Customer_Data_Store_Interface{}

No Hooks.

Returns

Int.

Usage

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

WC_Customer_Data_Store_Interface::get_order_count() code WC 9.8.5

public function get_order_count( &$customer );