{
  "name": "bricks/conditions/groups",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-conditions-groups/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/conditions/groups",
  "description": {
    "en": "Filters the condition groups available in the element conditions interface. This allows you to add new categories for your custom conditions.",
    "zh": "筛选元素条件界面中可用的条件组。允许你为自己的自定义条件添加新类别。"
  },
  "parameters": [
    {
      "name": "groups",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Array of condition groups. Each group has a name and label .",
        "zh": "条件组数组。每个组包含 name 和 label。"
      }
    }
  ],
  "example_usage": "add_filter( 'bricks/conditions/groups', function( $groups ) {\n    // Add a custom condition group\n    $groups[] = [\n        'name'  => 'my_custom_group',\n        'label' => esc_html__( 'My Custom Group', 'my-plugin' ),\n    ];\n\n\n    return $groups;\n} );"
}