SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.6

searchwp_swp_query_args

View Parameters »

Using this hook you can filter the arguments sent to SWP_Query prior to a search being executed.

<?php
add_filter( 'searchwp_swp_query_args', function( $args ) {
// TODO: Modify $args as you see fit.
return $args;
} );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$args Array

The arguments sent to SWP_Query

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]