From 8bdff47133af032933cb966e2e599bbcc1e8a8e7 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 6 Dec 2017 18:10:28 +0000 Subject: [PATCH] Hook in subcats --- includes/wc-template-hooks.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/wc-template-hooks.php b/includes/wc-template-hooks.php index cb73b62af7c..50ede95e492 100644 --- a/includes/wc-template-hooks.php +++ b/includes/wc-template-hooks.php @@ -66,6 +66,11 @@ add_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); add_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); add_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 ); +/** + * Product loop start. + */ +add_filter( 'woocommerce_product_loop_start', 'woocommerce_maybe_show_product_subcategories' ); + /** * Products Loop. *