EPL_SEARCH Class
| Since | |
|---|---|
3.1 |
|
| Methods | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
public
|
__construct(WP_Query $query, array $data)
Get things going
Get things going Parameters
Since
|
# | ||||||||
protected
|
altered_fields(): array
These are list of fields which are not directly queried,
but their value is used to query other meta data / post data /…
These are list of fields which are not directly queried, but their value is used to query other meta data / post data / tax data |
# | ||||||||
public
|
sanitize_recursive(array|string $data)
Sanitize an array of data recursively.
Sanitize an array of data recursively. Parameters
Since
|
# | ||||||||
protected
|
sanitize_data()
Sanitize whole GET & POST array, insures security from XSS
Sanitize whole GET & POST array, insures security from XSS Since
|
# | ||||||||
protected
|
fields_to_skip()
Set list of fields which are not to be queried
Set list of fields which are not to be queried |
# | ||||||||
protected
|
skip_unnecessary_fields()
Skip unnecessay fields
Skip unnecessay fields |
# | ||||||||
protected
|
set_per_page()
Set per page for query
Set per page for query |
# | ||||||||
protected
|
set_pagination()
Set pagination for query
Set pagination for query |
# | ||||||||
protected
|
set_title()
Set title for query
Set title for query |
# | ||||||||
protected
|
set_property_agent()
Set property agent for query
Set property agent for query |
# | ||||||||
protected
|
set_post_type()
Set post type for query
Set post type for query Since
|
# | ||||||||
protected
|
modify_fields()
Modify meta keys according to data received, for special cases
Modify meta keys according to data received, for special cases |
# | ||||||||
protected
|
set_query()
Set queries meta, Tax
Set queries meta, Tax |
# | ||||||||
protected
|
set_meta_query()
Set meta query for the search object
Set meta query for the search object |
# | ||||||||
protected
|
set_tax_query()
Set tax query for the search object
Set tax query for the search object |
# | ||||||||
protected
|
get_field_status(): string
The requested listing statuses, keeping only real ones (Current, Sold, Leased...).
The requested listing statuses, keeping only real ones (Current, Sold, Leased...). ReturnsComma separated statuses, or ''. Since
|
# | ||||||||
protected
|
prepare_query()
Prepare the query
Prepare the query Since
|
# | ||||||||
public
|
epl_search_query_pre_search()
Pre search query
Pre search query |
# | ||||||||
protected
|
prepare_meta_query(array $query_field, string $value)
Prepare meta query
Prepare meta query Parameters
|
# | ||||||||
protected
|
is_query_multiple(array $query_field): boolean
Checks if given meta query is multiple
Checks if given meta query is multiple Parameters
|
# | ||||||||
protected
|
multiple_relation(array $query_field): string
Returns relationship for the multiple query
Returns relationship for the multiple query Parameters
|
# | ||||||||
protected
|
multiple_meta_query(array $query_field, string $data)
Set multiple meta query
Set multiple meta query Parameters
|
# | ||||||||
protected
|
single_meta_query(array $query_field, string $data)
Set single meta query
Set single meta query Parameters
|
# | ||||||||
protected
|
preprocess_meta_query()
Preprocess meta query
Preprocess meta query Since
|
# | ||||||||
protected
|
prepare_tax_query(array $query_field, string $value)
Prepare taxonomy query
Prepare taxonomy query Parameters
|
# | ||||||||
protected
|
prepare_special_query(array $query_field, string $value)
Prepare special query
Prepare special query Parameters
|
# | ||||||||
public
|
get_posts(): array
Return array of posts based on search data
Return array of posts based on search data |
# | ||||||||
| Properties | |||
|---|---|---|---|
public
|
array
|
$data
form data.
form data. |
# |
public
|
array
|
$skip_fields
Skipped fields.
Skipped fields. |
# |
public
|
array
|
$form_fields
form fields.
form fields. |
# |