WPAS

Form Configuration

There are a variety of configuration options available for your search form, which can be set through the ‘form’ key of your arguments array, like so:

$args['form'] = array(
  // arguments here
);

Available Parameters:

action

(string) Any URL

Default: Current page URL
method

(string) ‘GET’, ‘PUT’

Default: “GET”
name

(string)

Default: “wp-advanced-search”
class

(mixed) Either a string or an array containing the desired class name(s). If using a string, class names should be separated by spaces.

Default: “wp-advanced-search”
auto_submit

(boolean) true / false

Context: Indicates whether the form should submit automatically whenever a field is updated
Default: false
disable_wrappers

(boolean) true / false

Context: Disable HTML wrappers on fields when set to true
Default: false
ajax

(array)

Context: Sets configuration for AJAX-enabled forms when desired
Default: false