From d7d93954762cf4b2b381efbc5e893883b187a7ce Mon Sep 17 00:00:00 2001 From: Piotr Szczygiel Date: Thu, 19 Feb 2015 21:43:46 +0100 Subject: [PATCH 1/2] Added action hook into product_category shortcode --- includes/class-wc-shortcodes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-wc-shortcodes.php b/includes/class-wc-shortcodes.php index 2d319f44c9d..cdb76b4218c 100644 --- a/includes/class-wc-shortcodes.php +++ b/includes/class-wc-shortcodes.php @@ -182,6 +182,8 @@ class WC_Shortcodes { + + Date: Fri, 20 Feb 2015 21:32:13 +0100 Subject: [PATCH 2/2] added 'before' hook as well --- includes/class-wc-shortcodes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-shortcodes.php b/includes/class-wc-shortcodes.php index cdb76b4218c..27d90b3a1b6 100644 --- a/includes/class-wc-shortcodes.php +++ b/includes/class-wc-shortcodes.php @@ -172,6 +172,8 @@ class WC_Shortcodes { if ( $products->have_posts() ) : ?> + + have_posts() ) : $products->the_post(); ?> @@ -182,7 +184,7 @@ class WC_Shortcodes { - +