- enable showing extra column in >Settings>Interface
- generate content using hook wpo_product_extra_col_value.
For “Cost of goods” plugin (SkyVerge) — use this code
1 2 3 |
add_filter("wpo_product_extra_col_value", function($html,$product,$cart){ return wc_price( get_post_meta($product->get_id(), "_wc_cog_cost", true) ); },10,3); |
For YITH WooCommerce Cost of Goods — use following version
1 2 3 |
add_filter("wpo_product_extra_col_value", function($html,$product,$cart){ return wc_price( get_post_meta($product->get_id(), "_wc_cog_cost", true) ); },10,3); |
Add some products and you will see