Filter_Can_Restrict_Terms
Provides access to methods that can be used to index a taxonomy from a product.
Tags
Table of Contents
- restrict_possible_choices() : array<string|int, mixed>
 - Restrict the possible choices based on specific terms selection.
 
Methods
restrict_possible_choices()
Restrict the possible choices based on specific terms selection.
    public
                restrict_possible_choices(array<string|int, mixed> $possible_choices) : array<string|int, mixed>
        Purposefully ignore phpcs warnings for now.
Parameters
- $possible_choices : array<string|int, mixed>
 - 
                    
All the possible choices for all filters.
 
Return values
array<string|int, mixed> —The restricted possible choices.