Automattic\WooCommerce\Caches

OrderCountCache::get_default_statusespublicWC 1.0

Устарела с версии 10.1.0 This method will be removed in the future.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Get the default statuses.

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

Хуков нет.

Возвращает

Строку[].

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

$OrderCountCache = new OrderCountCache();
$OrderCountCache->get_default_statuses();

Список изменений

Устарела с 10.1.0 This method will be removed in the future.

Код OrderCountCache::get_default_statuses() WC 10.3.6

public function get_default_statuses() {
	return array_merge(
		array_keys( wc_get_order_statuses() ),
		array( OrderStatus::TRASH )
	);
}