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.6


SWP_Query has it’s own set of arguments. If you need to filter these arguments to include your own parameters, you can use this hook to do so.

Example: to customize the arguments sent to SWP_Query, add something like the following to your theme’s functions.php:

function my_searchwp_swp_query_args( $args ) {
// customize $args as per
return $args;
add_filter( 'searchwp_swp_query_args', 'my_searchwp_swp_query_args' );
view raw functions.php hosted with ❤ by GitHub
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