Filter: ep_facet_widget_term_accessible_label

apply_filters( 'ep_facet_widget_term_accessible_label', $label, $item, $selected ) → {string}

Filter the accessible label for an individual facet term link.

Used as the aria-label attribute for filter links. The accessible label should include additional context around what action will be performed by visiting the link, such as whether the filter will be added or removed.

Parameters:
Name Type Description
$label string

Facet term accessible label.

$item WP_Term

Term object.

$selected boolean

Whether the term is selected.

Since:
  • 4.0.0
Source:
Returns:

Individual facet term accessible label.

Type
string