Automattic\WooCommerce\Admin\RemoteInboxNotifications

OrdersProvider::get_order_count()publicWC 1.0

Returns the number of orders.

Method of the class: OrdersProvider{}

No Hooks.

Return

Int. The number of orders.

Usage

$OrdersProvider = new OrdersProvider();
$OrdersProvider->get_order_count();

OrdersProvider::get_order_count() code WC 8.7.0

public function get_order_count() {
	$status_counts = array_map( 'wc_orders_count', $this->allowed_statuses );
	$orders_count  = array_sum( $status_counts );

	return $orders_count;
}