{
  "name": "bricks/acf/google_map/address_parts",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-acf-google_map-address_parts/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/acf/google_map/address_parts",
  "description": {
    "en": "Filters the parts of the address displayed when rendering an ACF Google Map field. You can use this to reorder or remove specific components of the address.",
    "zh": "筛选渲染 ACF Google Map 字段时所显示地址的组成部分。可用于重新排序或移除地址中的特定部分。"
  },
  "parameters": [
    {
      "name": "address_parts",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Array of address part keys. Defaults: [ 'street_name', 'street_number', 'city', 'state', 'post_code', 'country' ] .",
        "zh": "地址部分键的数组。默认值：['street_name', 'street_number', 'city', 'state', 'post_code', 'country']。"
      }
    },
    {
      "name": "value",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "The raw value of the ACF Google Map field.",
        "zh": "ACF Google Map 字段的原始值。"
      }
    },
    {
      "name": "field",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "The ACF field settings.",
        "zh": "ACF 字段设置。"
      }
    }
  ],
  "example_usage": "add_filter( 'bricks/acf/google_map/address_parts', function( $address_parts, $value, $field ) {\n    // Example: Only show city and country, and change order\n    return [ 'city', 'country' ];\n}, 10, 3 );"
}