SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.6

searchwp_swp_query_args

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:

<?php
function my_searchwp_swp_query_args( $args ) {
// customize $args as per https://searchwp.com/docs/swp_query/
return $args;
}
add_filter( 'searchwp_swp_query_args', 'my_searchwp_swp_query_args' );
view raw functions.php hosted with ❤ by GitHub
[wpforms id="3080"]