apply_filters( 'ep_allowed_request_orderby', $allowed, $args, $wp_query ) → {array}
Filter the orderby values accepted from the URL in the main query.
Unknown orderby values are used by ElasticPress as Elasticsearch sort fields. To let visitors
sort by an indexed field through the URL, e.g. ?orderby=meta.rating.long, add it here.
Parameters:
| Name | Type | Description |
|---|---|---|
$allowed |
array | Allowed |
$args |
array | WP_Query args. |
$wp_query |
WP_Query | WP_Query object. |
- Since:
- 5.3.7
- Source:
Returns:
New allowed values
- Type
- array