From a2f05dd368dc59a09237a0167622d6df4f4103db Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 3 Jun 2015 14:22:23 +0100 Subject: [PATCH] Show notices before cat loops --- includes/wc-notice-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/wc-notice-functions.php b/includes/wc-notice-functions.php index 07b578c4308..5527d6bd337 100644 --- a/includes/wc-notice-functions.php +++ b/includes/wc-notice-functions.php @@ -127,6 +127,7 @@ function wc_print_notices() { wc_clear_notices(); } +add_action( 'woocommerce_shortcode_before_product_cat_loop', 'wc_print_notices', 10 ); add_action( 'woocommerce_before_shop_loop', 'wc_print_notices', 10 ); add_action( 'woocommerce_before_single_product', 'wc_print_notices', 10 );