Select Page

Additional parameters that are used to change the values received from the get_terms WordPress function.

Parameters:

  • $additional – an array with additional parameters:
    • hierarchical(boolean) – sorts values hierarchically;
    • depth(int) – all child elements, that are deeper than this value in the hierarchy, will be deleted; if the value is set to zero, nothing will be deleted;
    • operator(string) – the operators used in the product count in values can be either OR, or AND;
    • recount_tax_query(array) – the tax_query array, which is going to be used in recalculating the values, is taken from the current query for products by default;
    • disable_recount(boolean) – disables the recalculation of the values based on the other filters and variations (depends on global settings);
    • disable_hide_empty(boolean) – disables deleting values without products for the page. If the attribute value is not used in any product (in store as a whole), the value is deleted anyway
  • $filter_data – the filter settings, that were set when the filter was created
  • $widget_args – the widget parameters
  • $get_terms_args – parameters for the get_terms WordPress function