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

Automattic\WooCommerce\Admin

Loader::get_unregistered_order_statuses() public WC 1.0

Get all order statuses present in analytics tables that aren't registered.

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

Хуков нет.

Возвращает

Массив. Unregistered order statuses.

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

$result = Loader::get_unregistered_order_statuses();

Код Loader::get_unregistered_order_statuses() WC 4.7.1

<?php
public static function get_unregistered_order_statuses() {
	$registered_statuses   = wc_get_order_statuses();
	$all_synced_statuses   = OrdersDataStore::get_all_statuses();
	$unregistered_statuses = array_diff( $all_synced_statuses, array_keys( $registered_statuses ) );
	$formatted_status_keys = self::get_order_statuses( array_fill_keys( $unregistered_statuses, '' ) );
	$formatted_statuses    = array_keys( $formatted_status_keys );

	return array_combine( $formatted_statuses, $formatted_statuses );
}