facetwp remove woocommerce js

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/** remove facet’s custom javascript for woocommerce **/
add_filter( ‘facetwp_assets’, function( $assets ) {
unset( $assets[‘woocommerce.js’] );
return $assets;
});
{{/gist}}