From a045f2be651f2ce21c278b7d20e01282620dd055 Mon Sep 17 00:00:00 2001 From: Kurtis Holsapple Date: Fri, 18 Jul 2025 16:12:34 -0700 Subject: [PATCH] changes --- actions/DontShowProductsOnShopLandingPageAction.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/actions/DontShowProductsOnShopLandingPageAction.php b/actions/DontShowProductsOnShopLandingPageAction.php index f33cca2..5c8a394 100644 --- a/actions/DontShowProductsOnShopLandingPageAction.php +++ b/actions/DontShowProductsOnShopLandingPageAction.php @@ -25,14 +25,9 @@ class DontShowProductsOnShopLandingPageAction extends RadAction return; } - // Remove everything hooked to the product loop remove_all_actions('woocommerce_before_shop_loop'); remove_all_actions('woocommerce_shop_loop'); remove_all_actions('woocommerce_after_shop_loop'); - - // Also prevent product loop rendering itself - remove_all_actions('woocommerce_before_main_content'); - remove_all_actions('woocommerce_after_main_content'); remove_all_actions('woocommerce_no_products_found'); add_action('pre_get_posts', function ($query) {