The WooCommerce filter field guide
Audience Rules.
Show, hide or restyle ModeFilter Pro filters for specific countries, guests or signed-in customers, or when another filter is in use.
Audience rules change the filter panel for different visitors. Rules work for the whole panel and for a single filter.
Two scopes
- Panel rules (Visual Builder → Audience rules) change the style of the whole filter panel.
- Filter rules: select a filter, then use Audience for this filter. A rule can show, hide, or use another style for just that filter.
Conditions
| When | Matches |
|---|---|
| Country | The visitor’s country, from their address if signed in, or from their location |
| Account | Guest or Signed in |
| Another filter has a selection | For example, show Size only after a Category is chosen |
Actions
- Show: the filter appears only for matching visitors.
- Hide: the filter is hidden for matching visitors. Hide always wins over Show.
- Style: the filter uses Chips, Checkboxes, Radios or Toggles for matching visitors. This works for filters that follow the panel style, not for swatches, size buttons, stepper or slider.
In a shortcode
Each rule is target:action:condition:value. Separate rules with |. The first matching style rule applies.
audience_rules="price:hide:country:PK|categories:checkboxes:account:guest"
This hides Price for visitors from Pakistan and shows Categories as checkboxes for guests.
Test your rules
In the Visual Builder, Preview country and Preview account let you see the page as another visitor would.
Privacy: country detection uses WooCommerce’s own geolocation and the customer’s saved address. ModeFilter Pro does not contact any external service.
