{
  "name": "bricks/filter_element/controls",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-filter_element-controls/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/filter_element/controls",
  "description": {
    "en": "Filters the controls available for filter elements (e.g., Checkbox, Radio, Select, Range). This allows you to add, remove, or modify settings for these elements globally.",
    "zh": "此筛选器允许你注册可在 Bricks 内使用的自定义字体图标集。"
  },
  "parameters": [
    {
      "name": "controls",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Array of element controls.",
        "zh": "元素控件数组。"
      }
    },
    {
      "name": "element",
      "type": "object",
      "type_zh": null,
      "description": {
        "en": "The filter element instance.",
        "zh": "筛选元素实例。"
      }
    }
  ],
  "example_usage": "add_filter( 'bricks/filter_element/controls', function( $controls, $element ) {\n    // Add a custom control to all filter elements\n    $controls['my_custom_setting'] = [\n        'tab'   => 'content',\n        'group' => 'filter',\n        'label' => esc_html__( 'My Custom Setting', 'my-plugin' ),\n        'type'  => 'checkbox',\n    ];\n\n\n    return $controls;\n}, 10, 2 );"
}