I've been trying to search for this info on my own, but I failed.
All I am trying to do is to pass data from wp_woocommerce_order_items
table to my custom plugin, to be able to display coupon code in my custom columns, and can't figure out how to make it works. I've tried code below, but it doesn't work.
add_action( 'manage_shop_order_posts_custom_column', 'getSellersAndCouponValues', 2, 2);
function getSellersAndCouponValues( $column, $order ) { // ...my code }
And if I try to pass $order_id, how it was made in some tutorial I found, I am getting column type of Int(13)
, instead of real value for every single order.