{
  "name": "bricks/acf/filter_field_groups",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-acf-filter_field_groups/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/acf/filter_field_groups",
  "description": {
    "en": "Filters the ACF field groups available in the Bricks dynamic data picker. This allows you to exclude specific field groups from appearing in the builder’s dynamic data dropdown.",
    "zh": "筛选 Bricks 动态数据选择器中可用的 ACF 字段组。允许你排除特定的字段组，使其不出现在构建器的动态数据下拉中。"
  },
  "parameters": [
    {
      "name": "groups",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Array of ACF field groups retrieved via acf_get_field_groups() .",
        "zh": "通过 acf_get_field_groups() 检索到的 ACF 字段组数组。"
      }
    }
  ],
  "example_usage": "add_filter( 'bricks/acf/filter_field_groups', function( $groups ) {\n    // Loop through groups and unset the one you want to hide\n    foreach ( $groups as $key => $group ) {\n        // Example: Hide field group with key 'group_60f1234567890'\n        if ( $group['key'] === 'group_60f1234567890' ) {\n            unset( $groups[ $key ] );\n        }\n    }\n\n\n    return $groups;\n} );"
}