Merge pull request #7511 from piotr-szczygiel/product-categoty-shortcode-hook

Product categoty shortcode hook
This commit is contained in:
Mike Jolley 2015-02-23 11:04:44 +00:00
commit 68fd1589c7
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,8 @@ class WC_Shortcodes {
if ( $products->have_posts() ) : ?>
<?php do_action( 'woocommerce_shortcode_before_product_cat_loop' ); ?>
<?php woocommerce_product_loop_start(); ?>
<?php while ( $products->have_posts() ) : $products->the_post(); ?>
@ -182,6 +184,8 @@ class WC_Shortcodes {
<?php woocommerce_product_loop_end(); ?>
<?php do_action( 'woocommerce_shortcode_after_product_cat_loop' ); ?>
<?php endif;
woocommerce_reset_loop();