# 向用户下拉菜单添加新项目

**URL:** https://meta.discourse.org/t/add-new-item-to-user-dropdown-menu/389755
**Category:** Support
**Tags:** user-menu
**Created:** [2025年十一月26日 17:46 UTC](https://meta.discourse.org/t/add-new-item-to-user-dropdown-menu/389755 "2025-11-26T17:46:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025年十一月26日 18:33 UTC](https://meta.discourse.org/t/add-new-item-to-user-dropdown-menu/389755/2 "2025-11-26T18:33:33Z")

</div>

欢迎来到 Meta 👋

您可以使用 [plugin-API](https://github.com/discourse/discourse/blob/27256c450761b23c5252165d3b2094a10f284346/frontend/discourse/app/lib/plugin-api.gjs#L2263) 向该菜单添加一个新链接。例如，您可以通过在管理界面中创建一个[新的主题组件](https://meta.discourse.org/t/customizing-themes-without-an-edit-code-button/329601#p-1617331-creating-a-custom-component-3)并在 JS 选项卡中添加如下内容来直接实现：

```js
api.addQuickAccessProfileItem({
 icon: "pencil",
 href: "/somewhere",
 content: "Title"
})

```

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/b/3/3b31628a7e16e73d439ea50ad10711dc142358af.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/1/f/e1ffbaa7c08c2b42832e6af5feee976f77f7f942.png)

---

_[View the full topic](https://meta.discourse.org/t/add-new-item-to-user-dropdown-menu/389755)._
