daily pastebin goal
19%
SHARE
TWEET

WooCommerce - Custom sale badge text

lorro Feb 12th, 2017 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // WooCommerce - Custom sale badge text
  3.   // code goes in functions.php for your child theme
  4.   add_filter('woocommerce_sale_flash', 'custom_sale_text', 40);
  5.   function custom_sale_text() {
  6.     return '<span class="onsale">SPRING SALE!</span>';
  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