-
-
Save searchwpgists/09bc900ac49651c2f0c7cb41a70b20ac to your computer and use it in GitHub Desktop.
Customize available Engine Source Attribute weights in SearchWP
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 | |
// Customize available Engine Source Attribute weights in SearchWP. | |
add_filter( 'searchwp\weights', function( $weights ) { | |
// Make available only two weight choices. | |
return [ | |
1 => 'Lowest', | |
1000 => 'Highest', | |
]; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment