Automattic\WooCommerce\Internal\Admin

Loader::get_order_statusespublic staticWC 1.0

Deprecated since migrate to \Automattic\WooCommerce\Internal\Admin\Settings instead.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Format order statuses by removing a leading 'wc-' if present.

Method of the class: Loader{}

No Hooks.

Returns

Array. formatted statuses.

Usage

$result = Loader::get_order_statuses( $statuses );
$statuses(array) (required)
Order statuses.

Changelog

Deprecated migrate to \Automattic\WooCommerce\Internal\Admin\Settings instead.

Loader::get_order_statuses() code WC 10.5.0

public static function get_order_statuses( $statuses ) {
	wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.9.0', '\Automattic\WooCommerce\Internal\Admin\Settings::get_order_statuses' );

	return Settings::get_order_statuses( $statuses );
}