Filter: bricks/filter/taxonomy_args
Filters the arguments passed to get_terms() when generating options for taxonomy-based filter elements (e.g., Checkbox, Radio, Select filters).
Parameters
Section titled “Parameters”$args(array): Array of arguments forget_terms().$element(object): The filter element instance.
Example usage
Section titled “Example usage”add_filter( 'bricks/filter/taxonomy_args', function( $args, $element ) { // Example: Exclude specific term IDs from the filter options $args['exclude'] = [ 1, 2, 3 ];
return $args;}, 10, 2 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.