Change order admin panel to new statuses
This commit is contained in:
parent
04a304e81c
commit
9bc9b34cc8
|
@ -156,9 +156,9 @@ class WC_Meta_Box_Order_Data {
|
|||
<p class="form-field form-field-wide"><label for="order_status"><?php _e( 'Order status:', 'woocommerce' ) ?></label>
|
||||
<select id="order_status" name="order_status" class="chosen_select">
|
||||
<?php
|
||||
$statuses = (array) get_terms( 'shop_order_status', array( 'hide_empty' => 0, 'orderby' => 'id' ) );
|
||||
foreach ( $statuses as $status ) {
|
||||
echo '<option value="' . esc_attr( $status->slug ) . '" ' . selected( $status->slug, $order->status, false ) . '>' . esc_html__( $status->name, 'woocommerce' ) . '</option>';
|
||||
$statuses = wc_get_order_statuses();
|
||||
foreach ( $statuses as $status => $status_name ) {
|
||||
echo '<option value="' . esc_attr( $status ) . '" ' . selected( $status, $order->get_status(), false ) . '>' . esc_html( $status_name ) . '</option>';
|
||||
}
|
||||
?>
|
||||
</select></p>
|
||||
|
|
Loading…
Reference in New Issue