WPAS

Configuration

Search forms are configured in WPAS by establishing a set of arguments which define the functionality and behavior of the search. While in the Setup section we covered how to create such a configuration at a high-level, this section provides an in-depth look at the various configuration options available to you. All of the parameters listed below can be set by adding them to your arguments array like so:

 
$args['parameter-name'] = 'value goes here';
 

Available Parameters:

wp_query

(array)

Context: Default WP_Query arguments
Default: None
form

(array)

Context: Define various configuration settings for the search form
Default: None
meta_key_relation

(string) ‘AND’, ‘OR’

Context: Define relationship between all meta_key fields in the search form
Default: ‘AND’
taxonomy_relation

(string) ‘AND’, ‘OR’

Context: Define relationship between all taxonomy fields in the search form
Default: ‘AND’
debug

(boolean)

Context: Set to true to enable debug mode
Default: false
debug_level

(string) ‘log’, ‘verbose’

Context: Set to ‘verbose’ to see more detailed debug output
Default: ‘log’