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.
Return
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 9.4.2
public function get_order_count( $status );