Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 15, 2016 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/b98d5ef690e34aa7b809 to your computer and use it in GitHub Desktop.
Save jchristopher/b98d5ef690e34aa7b809 to your computer and use it in GitHub Desktop.
Customize the default settings implemented on SearchWP activation
<?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