Hi,
Greetings!
I want display extra information in the Orders Page of WooCommerce. The Orders Page used to be "edit.php?post_type=shop_order" before High-Performance Order Storage (HPOS) rolled out and the codes below worked fine. However, now with HPOS enabled, the Orders Page has become "admin.php?page=wc-orders". May I know how do I alter the following code so that the extra information (Vehicle) can be displayed?
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
$meta_boxes[] = array(
'title' => 'Vehicle Info',
'post_types' => 'shop_order',
'fields' => array(
array(
'name' => 'Vechicle',
'id' => 'vehicle',
'type' => 'text',
'admin_columns' => true, // Just show this column
'position' => 'after action',
),
),
);
return $meta_boxes;
} );
Thanks!