Filter: ep_facet_use_field

apply_filters( 'ep_facet_use_field', $field, $taxonomy ) → {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

$taxonomy WP_Taxonomy

The taxonomy

Since:
  • 3.6.0, 4.3.0 added $taxonomy
Source:
Returns:

The chosen term field

Type
string