wc_get_order_status_name()
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() 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; }