woocommerce_subcategory_count_html Closes #1871.

This commit is contained in:
Mike Jolley 2012-11-28 17:24:17 +00:00
parent 20861b5809
commit 0dd88985d7
1 changed files with 6 additions and 4 deletions

View File

@ -45,10 +45,12 @@ $woocommerce_loop['loop']++;
?>
<h3>
<?php echo $category->name; ?>
<?php if ( $category->count > 0 ) : ?>
<mark class="count">(<?php echo $category->count; ?>)</mark>
<?php endif; ?>
<?php
echo $category->name;
if ( $category->count > 0 )
echo apply_filters( 'woocommerce_subcategory_count_html', ' <mark class="count">(' . $category->count . ')</mark>', $category );
?>
</h3>
<?php