FacetWP – hide checkbox toggles

<?php

function fwp_hide_toggles() {
?>
<script>
(function($) {
  $(function() {
    wp.hooks.addFilter('facetwp/checkboxes/show_toggles', function(ret) {
      return false;
    });
  });
})(jQuery);
</script>
<style>
.facetwp-type-checkboxes .facetwp-depth {
    display: inherit !important;
}
</style>
<?php
}
add_action( 'wp_head', 'fwp_hide_toggles', 100 );