wc_get_order_statuses()WC 2.2

Get all order statuses.

Hooks from the function

Returns

Array.

Usage

wc_get_order_statuses();

Changelog

Since 2.2 Introduced.

wc_get_order_statuses() code WC 10.7.0

function wc_get_order_statuses() {
	$order_statuses = array(
		OrderInternalStatus::PENDING    => _x( 'Pending payment', 'Order status', 'woocommerce' ),
		OrderInternalStatus::PROCESSING => _x( 'Processing', 'Order status', 'woocommerce' ),
		OrderInternalStatus::ON_HOLD    => _x( 'On hold', 'Order status', 'woocommerce' ),
		OrderInternalStatus::COMPLETED  => _x( 'Completed', 'Order status', 'woocommerce' ),
		OrderInternalStatus::CANCELLED  => _x( 'Cancelled', 'Order status', 'woocommerce' ),
		OrderInternalStatus::REFUNDED   => _x( 'Refunded', 'Order status', 'woocommerce' ),
		OrderInternalStatus::FAILED     => _x( 'Failed', 'Order status', 'woocommerce' ),
	);
	return apply_filters( 'wc_order_statuses', $order_statuses );
}