{
  "name": "bricks/assets/generate_css_from_element",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/filter-bricks-assets-generate_css_from_element/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/assets/generate_css_from_element",
  "description": {
    "en": "This filter allows you to include your custom query loop supported element to generate the children styles in Bricks.",
    "zh": "此筛选器允许你包含自定义的支持查询循环的元素，以便在 Bricks 中生成子级样式。"
  },
  "since": "1.9.2",
  "parameters": [
    {
      "name": "element_names",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Additional loop-capable element names. Defaults to an empty array.",
        "zh": "要为其生成 CSS 的元素实例。"
      }
    },
    {
      "name": "current_element",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "The element currently being processed for CSS generation.",
        "zh": "当前正在为其生成 CSS 的元素。"
      }
    },
    {
      "name": "css_type",
      "type": "string",
      "type_zh": null,
      "description": {
        "en": "The CSS generation area, such as header , footer , or content .",
        "zh": "CSS 生成区域，例如 header、footer 或 content。"
      }
    }
  ],
  "example_usage": null
}