WC_Order_Data_Store_Interface::get_order_count
Return count of orders with a specific status.
Method of the class: WC_Order_Data_Store_Interface{}
No Hooks.
Returns
Int.
Usage
$WC_Order_Data_Store_Interface = new WC_Order_Data_Store_Interface(); $WC_Order_Data_Store_Interface->get_order_count( $status );
- $status(string) (required)
- Order status.
WC_Order_Data_Store_Interface::get_order_count() WC Order Data Store Interface::get order count code WC 10.5.0
public function get_order_count( $status );