WC_Customer_Data_Store_Interface::get_order_count() public WC 1.0
Return the number of orders this customer has.
{} It's a 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.
Code of WC_Customer_Data_Store_Interface::get_order_count() WC Customer Data Store Interface::get order count WC 5.0.0
public function get_order_count( &$customer );