×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Hide product count on category display pages

When the category display pages have been set to show subcategories (rather than all products), the sub-category headings include the number of items in that category. This code hides that product count.

		/**
 * Hide product count on category display pages
 */

add_filter('woocommerce_subcategory_count_html', '__return_false');
	
   View Raw Code ID: 91025