Created
February 20, 2018 00:09
-
-
Save djrmom/a1c2f439f7955e180b39821b0c1a12c8 to your computer and use it in GitHub Desktop.
facetwp conditional filter
This file contains hidden or 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_use_search_relevancy', function( $value, $class ) { | |
if ( 'foo/bar' == $class->http_params['uri'] ) { | |
return false; | |
} | |
return $value; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment