facetwp conditional filter

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php

add_filter( ‘facetwp_use_search_relevancy’, function( $value, $class ) {

if ( ‘foo/bar’ == $class->http_params[‘uri’] ) {
return false;
}

return $value;
}, 10, 2 );
{{/gist}}