Merge pull request #7511 from piotr-szczygiel/product-categoty-shortcode-hook
Product categoty shortcode hook
This commit is contained in:
commit
68fd1589c7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue