This Documentation is for SearchWP Version 3

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