Filters for Woocommerce Order Overview Columns
-
Hi there,
i was wondering how i could filter the data that gets displayed in the Admin Order Overview site of Woocommerce.
For example i would like to add a customer field IN the order total column so the cell would display:
Total (standard woocommerce)
Payment method (swc)
TrustedPayee (custom field)thanks for any pointers.
i have been able to “inject” data before the woocommerce data like so:add_action( 'manage_posts_custom_column', 'fmco_add_order_overview_column_data', 99999, 2 ); global $woocommerce; $order_id = new WC_Order( $post_id ); if ( 'order_total' == $column_key ) { echo get_post_meta( $post_id, '_MY_CUSTOM_FIELD', true ); } }
this however, no matter how high i set the priority in the hook will always be displayed BEFORE the standard woocommerce data :/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Filters for Woocommerce Order Overview Columns’ is closed to new replies.