This commit is contained in:
2025-07-18 16:02:13 -07:00
parent 9d25f4c8a5
commit f857a1dd73

View File

@@ -26,6 +26,7 @@ class DontShowProductsOnShopLandingPageAction extends RadAction
} }
add_action('pre_get_posts', function ($query) { add_action('pre_get_posts', function ($query) {
$query->set('post_type', 'product');
$query->set('posts_per_page', 0); $query->set('posts_per_page', 0);
}); });
} }