SHARE
TWEET

Untitled

a guest Sep 13th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4.  * Call Counter Bar in product loop below product name using shortcode.
  5.  * This inherit product's bar settings and follow campaign rules.
  6.  */
  7. add_action('woocommerce_after_shop_loop_item_title', 'wcct_shop_loop_bar_display', 22);
  8. if (!function_exists('wcct_shop_loop_bar_display')) {
  9.   function wcct_shop_loop_bar_display() {
  10.       echo do_shortcode('[finale_counter_bar skip_rules="no"]');
  11.   }
  12. }
RAW Paste Data
Top