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.

wc_get_order_status_name() code WC 9.4.2

function wc_get_order_status_name( $status ) {
	$statuses = wc_get_order_statuses();
	$status   = OrderUtil::remove_status_prefix( $status );

	return $statuses[ 'wc-' . $status ] ?? $status;
}