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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'searchwp_swp_query_args', function( $args ) { | |
// TODO: Modify $args as you see fit. | |
return $args; | |
} ); |
Parameters
Parameter | Type | Description |
---|---|---|
$args |
Array |
The arguments sent to |