Automattic\WooCommerce\Caches
OrderCountCache::get_default_statuses
Deprecated since 10.1.0 This method will be removed in the future.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Get the default statuses.
Method of the class: OrderCountCache{}
No Hooks.
Returns
String[].
Usage
$OrderCountCache = new OrderCountCache(); $OrderCountCache->get_default_statuses();
Changelog
| Deprecated since 10.1.0 | This method will be removed in the future. |
OrderCountCache::get_default_statuses() OrderCountCache::get default statuses code WC 10.7.0
public function get_default_statuses() {
return array_merge(
array_keys( wc_get_order_statuses() ),
array( OrderStatus::TRASH )
);
}