daily pastebin goal
25%
SHARE
TWEET

WooCommerce - Set a nil-price message

lorro May 21st, 2015 (edited) 223 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // code goes in functions.php for your child theme
  3.   // output a message if the product price is nil
  4.   add_filter('woocommerce_empty_price_html', 'nil_price_message');
  5.   function nil_price_message() {
  6.     return 'Ring for price';
  7.   }
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