Note: You are viewing the documentation for Version 3View Version 4 Docs


View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 2.8.16


View Parameters »

By default SearchWP accepts an orderby query string parameter. There is a restricted list of accepted parameters:

  • title

If you would like to prevent SearchWP from accepting an orderby query parameter you can use this hook like so:

// Prevent SearchWP from accepting an orderby query parameter.
add_filter( 'searchwp_query_allow_query_string_override_orderby', '__return_false' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$allow_override Boolean

Whether a query parameter is considered

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP