WC_Customer_Data_Store_Interface::get_order_count()
Return the number of orders this customer has.
Method of the class: WC_Customer_Data_Store_Interface{}
No Hooks.
Return
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() WC Customer Data Store Interface::get order count code WC 8.7.0
public function get_order_count( &$customer );