Created
January 22, 2015 14:26
-
-
Save jchristopher/ebd65e045eb90427571a to your computer and use it in GitHub Desktop.
Define a minimum weight for an acceptable SearchWP result
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 | |
function my_searchwp_weight_threshold() { | |
// only accept results with a weight of 10 or more | |
return 10; | |
} | |
add_filter( 'searchwp_weight_threshold', 'my_searchwp_weight_threshold' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment