{
  "name": "bricks/element/set_root_attributes",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/filter-bricks-set_root_attributes/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/element/set_root_attributes",
  "description": {
    "en": "Bricks 1.4 with its improved & slimmer DOM structure now requires to add the element ID, root classes, and other element root HTML attributes directly inside the render() function. You can programmatically manipulate the returns element root attributes like so: The filter callback receives 2 arguments: NOTE : This filter doesn’t work in builder & already possible with bricks/element/render_attributes",
    "zh": "此筛选器允许你修改要在元素标签中显示的元素名称。"
  },
  "example_usage": null
}