Query_Filter

  • Full name: \BigCommerce\Taxonomies\Product_Category\Query_Filter

Methods

__construct

public __construct(\BigCommerce\Taxonomies\Product_Category\Group_Filtered_Terms $group_filtered_terms): mixed

Parameters:

ParameterTypeDescription
$group_filtered_terms\BigCommerce\Taxonomies\Product_Category\Group_Filtered_Terms

apply

Filter the query to show products for the whitelisted product categories

public apply(\WP_Query $query): void

Parameters:

ParameterTypeDescription
$query\WP_Query

get_non_visible_terms

Retrieve a list of terms with is_visible = false

public get_non_visible_terms(): array

maybe_hide_children

When retrieving a term that has children, WP will include the children in the archive unless we specifically exclude it. This only applies when a group has visibility of a parent term, but not children.

public maybe_hide_children(mixed $query): mixed

Parameters:

ParameterTypeDescription
$querymixed


Automatically generated on 2025-01-21