Created
February 3, 2020 20:27
-
-
Save ethicka/263ff870541ed5e4512b545fde40049e to your computer and use it in GitHub Desktop.
FacetWP: Remove Facet Count
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
<?php | |
add_filter('facetwp_facet_html', function ($output, $params) { | |
if ('dropdown' == $params['facet']['type']) { | |
$output = preg_replace("/( \([0-9]+\))/m", '', $output); | |
} | |
return $output; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment