SHARE
TWEET

Untitled

a guest Jun 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('woocommerce_get_price_html', 'wcfm_woocommerce_get_price_html', 10, 2);
  2. function wcfm_woocommerce_get_price_html($price_html, $product) {
  3.     // get your data about lowest price
  4.     $lowest_price = get_your_lowest_price();
  5.  
  6.     // append it to original column string
  7.     $price_html .= sprintf('<br /><br />Lowest price: %s', $lowest_price);
  8.  
  9.     return $price_html;
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top