{
  "name": "bricks/export_template_args",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-export_template_args/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/export_template_args",
  "description": {
    "en": "Filters the URL arguments used for the “Export Template” link in the Bricks templates list table.",
    "zh": "此筛选器允许你在 Bricks 中注册自定义元素事件。"
  },
  "parameters": [
    {
      "name": "args",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Array of query arguments for the export URL (e.g., action , nonce , templateId ).",
        "zh": "导出 URL 的查询参数数组（例如 action、nonce、templateId）。"
      }
    },
    {
      "name": "post_id",
      "type": "int",
      "type_zh": null,
      "description": {
        "en": "The ID of the template being exported.",
        "zh": "正在被导出的模板 ID。"
      }
    }
  ],
  "example_usage": "add_filter( 'bricks/export_template_args', function( $args, $post_id ) {\n    // Example: Add a custom parameter to the export URL\n    $args['my_param'] = 'value';\n\n\n    return $args;\n}, 10, 2 );"
}