// For display and saving in order details page.
add_action( ‘add_meta_boxes’, ‘add_shop_order_meta_box’ );
function add_shop_order_meta_box() {

add_meta_box(
‘custom_column’,
__( ‘Customer Source’, ‘your_text_domain’ ),
‘shop_order_display_callback’,
‘shop_order’
);

}

function shop_order_display_callback( $post ) {

$meta = get_post_meta($post->ID,’customersource’, true);

echo ‘
<div class=”customer_sourse_area”><div class=”customer_sourse_label”>Where did you hear about us?</div></div>
‘;

if($meta){
//$value = get_post_meta( $post->ID, ‘Amouse Order Options’, true );

echo ‘
<div class=””>’.$meta.'</div>
‘;
}else{
echo ‘Not answered’;
}
echo “</div>”;
}