Filter: ep_facet_widget_term_html

apply_filters( 'ep_facet_widget_term_html', $html, $term, $url, $selected ) → {string}

Filter the HTML for an individual facet term.

For term search to work correctly the outermost wrapper of the term HTML must have data-term-name and data-term-slug attributes set to lowercase versions of the term name and slug respectively.

Kept for retro compatibility.

Parameters:
Name Type Description
$html string

Facet term HTML.

$term WP_Term

Term object.

$url string

Filter URL.

$selected boolean

Whether the term is selected.

Since:
  • 3.6.3
Deprecated:
  • 4.7.0
Source:
Returns:

Individual facet term HTML.

Type
string