Automattic\WooCommerce\Admin\API

ActivityPanelCounts::get_default_order_statuses │ private │ WC 1.0

Get the default order statuses counted as "to fulfill", matching the store's own actionable order statuses setting.

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

Хуков нет.

Возвращает

array.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_default_order_statuses();

Код ActivityPanelCounts::get_default_order_statuses() WC 11.2.2

private function get_default_order_statuses() {
	$actionable = get_option( 'woocommerce_actionable_order_statuses', false );

	// Any valid array is respected as-is, including an explicitly empty one: the merchant
	// intentionally cleared all actionable statuses, so there is nothing to fulfill,
	// matching the previous client-side behaviour. A missing (never configured) or
	// malformed option falls back to the filtered default, matching the Analytics
	// Settings screen and the reports.
	return Settings::get_valid_order_statuses_or_default( $actionable, Settings::get_default_actionable_order_statuses() );
}