Created
November 6, 2017 18:20
-
-
Save rynaldos-zz/da60019752683a9189b182d84de94bf2 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0] Remove brackets from product category counts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!