Filter: ep_facet_use_field

apply_filters( 'ep_facet_use_field', $field ) → {string}

Retrieve aggregations based on a custom field. This field must exist on the mapping. Values available out-of-the-box are:

  • slug (default)
  • term_id
  • name
  • parent
  • term_taxonomy_id
  • term_order
  • facet (retrieves a JSON representation of the term object)
Parameters:
Name Type Description
$field string

The term field to use

Since:
  • 3.6.0
Source:
Returns:

The chosen term field

Type
string