WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Automattic\WooCommerce\Admin\API\Reports

Controller::get_order_statuses() public WC 1.0

Get order statuses without prefixes. Includes unregistered statuses that have been marked "actionable".

{} Это метод класса: Controller{}

Хуков нет.

Возвращает

Массив.

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

$result = Controller::get_order_statuses();

Код Controller::get_order_statuses() WC 5.5.2

<?php
public static function get_order_statuses() {
	// Allow all statuses selected as "actionable" - this may include unregistered statuses.
	// See: https://github.com/woocommerce/woocommerce-admin/issues/5592.
	$actionable_statuses = get_option( 'woocommerce_actionable_order_statuses', array() );

	// See WC_REST_Orders_V2_Controller::get_collection_params() re: any/trash statuses.
	$registered_statuses = array_merge( array( 'any', 'trash' ), array_keys( self::get_order_status_labels() ) );

	// Merge the status arrays (using flip to avoid array_unique()).
	$allowed_statuses = array_keys( array_merge( array_flip( $registered_statuses ), array_flip( $actionable_statuses ) ) );

	return $allowed_statuses;
}