Reorder order columns
-
I am trying to change the order of the columns in my order page however… nothing seems to work ??
- Am I supposed to add all columns to this list? I can reorder custom columns between them but not all of them
function so_58454709_reorder_orders_columns( $columns ) { unset( $columns['cEmail'] ); unset( $columns['oNotes'] ); unset( $columns['insured'] ); unset( $columns['cNotes'] ); $new_columns = array( 'order-status' => __( 'Status', 'Text Domain' ), 'order-number' => __( 'Number', 'Text Domain' ), 'order-actions' => __( 'Actions', 'Text Domain' ), 'order-total' => __( 'Total', 'Text Domain' ), 'order-date' => __( 'Date', 'Text Domain' ), ); return array_merge( $new_columns, $columns ); } add_filter( 'woocommerce_account_orders_columns', 'so_58454709_reorder_orders_columns' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Reorder order columns’ is closed to new replies.