Advertisement
majeedraza

WooCommerce - Custom sale badge text

Feb 12th, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement