Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Call Counter Bar in product loop below product name using shortcode.
- * This inherit product's bar settings and follow campaign rules.
- */
- add_action('woocommerce_after_shop_loop_item_title', 'wcct_shop_loop_bar_display', 22);
- if (!function_exists('wcct_shop_loop_bar_display')) {
- function wcct_shop_loop_bar_display() {
- echo do_shortcode('[finale_counter_bar skip_rules="no"]');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement