Functions
Generate a search block.
do_search_block(array $map) : array
Parameters
$map
array
Search block parameters
Returns
array
Search block template parameters
Find autocomplete suggestions to complete a partially-typed search request.
find_search_suggestions(string $request, \ID_TEXT $search_type = ''
) : array
Parameters
$request
string
Search request
$search_type
\ID_TEXT
The search type it is for (blank: N/A)
Returns
array
List of suggestions
Get minimum search length for MySQL.
get_minimum_search_length() : integer
Returns
integer
Search length
Find whether a phrase is too small for fulltext search.
is_under_radar(string $test) : boolean
Parameters
Returns
boolean
Whether it is
Classes, interfaces, and traits
FieldsSearchHook¶
Base class for catalogue search / custom content fields search.
« More »
Constants
MAXIMUM_AUTOCOMPLETE_SUGGESTIONS
MAXIMUM_AUTOCOMPLETE_SUGGESTIONS = intval(get_option('maximum_autocomplete_suggestions'))
MINIMUM_AUTOCOMPLETE_LENGTH
MINIMUM_AUTOCOMPLETE_LENGTH = intval(get_option('minimum_autocomplete_length'))
MINIMUM_AUTOCOMPLETE_PAST_SEARCH
MINIMUM_AUTOCOMPLETE_PAST_SEARCH = intval(get_option('minimum_autocomplete_past_search'))