Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created November 6, 2017 18:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rynaldos-zz/da60019752683a9189b182d84de94bf2 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/da60019752683a9189b182d84de94bf2 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0] Remove brackets from product category counts
add_filter( 'woocommerce_subcategory_count_html', 'wc_filter_woocommerce_subcat_count_html', 10, 2 );
function wc_filter_woocommerce_subcat_count_html( $mark_class_count_category_count_mark, $category ) {
$mark_class_count_category_count_mark = ' <mark class="count">' . $category->count . '</mark>';
return $mark_class_count_category_count_mark;
};
@Rhoteh
Copy link

Rhoteh commented Jul 5, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment