Created
January 15, 2016 02:36
-
-
Save jchristopher/b98d5ef690e34aa7b809 to your computer and use it in GitHub Desktop.
Customize the default settings implemented on SearchWP activation
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_initial_engine_settings( $settings ){ | |
// $settings contains all of the default engine settings | |
// you can customize the weights in any way you see fit | |
// but do not alter the structure of the array, just values | |
return $settings; | |
} | |
add_filter( 'searchwp_initial_engine_settings', 'my_searchwp_initial_engine_settings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment