SearchWP Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP’s many hooks

searchwp\query

Since: 4.0.0

Table of Contents

Using this hook you can directly manipulate the search query itself. Please exercise caution when making changes here so as to not break functionality or introduce un-prepared clauses.

Parameters

Type Parameter Default Since
Array $query Multidimensional array representing the query structure 4.0.0
Array $args
Key Type Value
args Array Arguments of the Query
values Array Placeholder values to be sent to $wpdb->prepare()
4.0.0