For example, you use plugin  “Cost of Goods” (by SkyVerge) 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.

For “Cost of goods” plugin (SkyVerge) — use this code

For YITH WooCommerce Cost of Goods — use following version

Add some products and you will see