{
  "name": "bricks/get_template_authors",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/bricks-get_template_authors/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/get_template_authors",
  "description": {
    "en": "Filters the list of authors displayed in the Bricks template manager. This allows you to customize which authors are selectable when filtering templates.",
    "zh": "在 Bricks 主查询循环开始时触发。可用于在主查询循环运行开始前执行附加任务。"
  },
  "parameters": [
    {
      "name": "authors",
      "type": "array",
      "type_zh": null,
      "description": {
        "en": "Array of author display names.",
        "zh": "作者显示名称数组。"
      }
    }
  ],
  "example_usage": "add_filter( 'bricks/get_template_authors', function( $authors ) {\n    // Example: Remove 'admin' from the authors list\n    if ( ( $key = array_search( 'admin', $authors ) ) !== false ) {\n        unset( $authors[ $key ] );\n    }\n\n\n    return $authors;\n} );"
}