From e34f8295da8c6ec1259a8f64dfa6bcfbe5a0d688 Mon Sep 17 00:00:00 2001 From: mxkae Date: Wed, 18 Dec 2024 19:54:56 +0800 Subject: [PATCH] minor change --- src/compatibility/woocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compatibility/woocommerce.php b/src/compatibility/woocommerce.php index 3d77099d5..47dfe27f0 100644 --- a/src/compatibility/woocommerce.php +++ b/src/compatibility/woocommerce.php @@ -30,7 +30,7 @@ function is_woocommerce_shop_page() { } - add_action( 'wp', 'is_woocommerce_shop_page' ); + add_action( 'woocommerce_before_main_content', 'is_woocommerce_shop_page' ); } if ( ! function_exists( 'stackable_check_if_woocommerce_shop' ) ) {