Overview

The Reset facet type – added in FacetWP v4.0 – adds a reset button or link.

Depending on the settings, the button or link resets all facets or a selection only.

You can set the button or link to automatically hide when no facets have selected values.

Usage

Go to the Facets tab, click “add new”, choose “Reset” as Facet type, set its options, and place it on your page with a shortcode.

Available options

Name Description
Reset UI Should the facet show as a button or a link.
Reset text The text of the button or link. Note: this text is translatable with the facetwp_i18n hook.
Include / exclude Include or exclude certain facets:

  • Reset everything – Reset all facets.
  • Reset only these facets – Reset only the selected facets (multiple select).
  • Reset all except these facets – Reset all facets except the selected facets (multiple select).
Auto-hide Automatically hide the reset button or link when no facets have selected values.

Reset facets programmatically

Besides using a Reset facet, it is also possible to reset facets programmatically.

See also