WordPress at Your Fingertips
function is not described

wc_get_order_status_name() WC 2.2

Get the nice name for an order status.

No Hooks.

Return

String.

Usage

wc_get_order_status_name( $status );
$status(string) (required)
Status.

Changelog

Since 2.2 Introduced.

Code of wc_get_order_status_name() WC 5.8.0

function wc_get_order_status_name( $status ) {
	$statuses = wc_get_order_statuses();
	$status   = 'wc-' === substr( $status, 0, 3 ) ? substr( $status, 3 ) : $status;
	$status   = isset( $statuses[ 'wc-' . $status ] ) ? $statuses[ 'wc-' . $status ] : $status;
	return $status;
}