For example, you use plugin  "Cost of Goods"  and   want to show  this price  for selected product


You must do these actions

  • enable showing extra column in >Settings>Interface
  • generate content using hook wpo_product_extra_col_value.
    use this code for "Cost of goods" plugin
    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