Related to: Add columns to admin orders list in WooCommerce backend
Is it possible to add only one new column in admin Order list instead. For the content of this column my-column1
I will like to have 2 custom fields like:
$my_var_one = get_post_meta( $post_id, '_the_meta_key1', true );
$my_var_two = get_post_meta( $post_id, '_the_meta_key2', true );
To finish is it possible to position this new column after the order_number
?
Any help is appreciated.
Updated - It can be done this way:
The other function stays unchanged…
Code goes in function.php file of your active child theme (or active theme). Tested and works.