→ facetwp_template_use_archive

Overview

This hook is useful if you’re using a shortcode template on an archive page, and want FacetWP to automatically pre-filter based on the current category / tag / term.

Parameters

  • $use_archive | boolean | Should FacetWP pre-filter?

Usage

add_filter( 'facetwp_template_use_archive', '__return_true' );