Automattic\WooCommerce\Admin\RemoteInboxNotifications

OrdersProvider::get_order_count()publicWC 1.0

Returns the number of orders.

Метод класса: OrdersProvider{}

Хуков нет.

Возвращает

Int. The number of orders.

Использование

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

Код OrdersProvider::get_order_count() 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;
}