Filter: ep_facet_post_type_value_html

apply_filters( 'ep_facet_post_type_value_html', $html, $item, $url ) → {string}

Filter the HTML for an individual facet post-type value.

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.

Parameters:
Name Type Description
$html string

Facet post-type value HTML.

$item array

Value array. It contains value, name, count, and is_selected.

$url string

Filter URL.

Since:
  • 4.6.0
Source:
Returns:

Individual facet post-typ value HTML.

Type
string