跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

My Account navigation to menu

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

My Account navigation to menu

作者:MohammadJafar Khajeh
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

By default, WooCommerce builds the My Account page navigation (Orders, Downloads, Addresses, Account details, Logout, etc.) from its own internal list, and customizing it normally means writing PHP filters.

This plugin registers a dedicated WordPress menu location called Account page menu. Once you assign a menu to that location, the plugin:

  • Replaces the default My Account navigation items with the items from your menu (using the menu item’s title and URL).
  • Rewrites WooCommerce’s internal endpoint URLs so they match the URLs defined in your menu.

This means you can manage the My Account navigation the same way you manage any other menu on your site — via Appearance → Menus — including reordering items by drag-and-drop, renaming labels, and adding or removing entries.

If no menu is assigned to the Account page menu location, the plugin has no effect and WooCommerce’s default My Account navigation is used as-is.

Requirements

  • WordPress 5.8 or later
  • PHP 7.4 or later
  • WooCommerce (active)

屏幕截图

Intro
Intro

安装

  1. Upload the plugin folder to /wp-content/plugins/, or install the plugin zip via Plugins → Add New → Upload Plugin in your WordPress admin.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Appearance → Menus.
  4. Create a new menu (or choose an existing one) and add the items you want to appear on the My Account page.
  5. Under Menu Settings, assign the menu to the Account page menu location, then save.

常见问题

Does this work without WooCommerce?

No, WooCommerce must be installed and active, since this plugin hooks into WooCommerce’s account navigation filters.

Can I add custom links or pages?

Yes. Any item you can normally add to a WordPress menu (pages, custom links, posts, categories) can be added to the Account page menu, as long as the corresponding endpoint exists.

What happens to endpoints not included in my menu?

Endpoints not present in your assigned menu are left to WooCommerce’s default behavior for their URL, but only items present in the menu will be pulled into the rendered navigation list.

How do I change the order of the My Account tabs?

Drag and drop the items into the order you want inside the Account page menu under Appearance → Menus, then save the menu.

How do I rename a tab, like “Orders” or “Downloads”?

Edit the corresponding menu item’s navigation label in Appearance → Menus and save. The new label will appear on the My Account page.

How do I remove a tab?

Simply leave its menu item out of (or remove it from) the menu assigned to the Account page menu location.

评价

此插件暂无评价。

贡献者及开发者

「My Account navigation to menu」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • MohammadJafar Khajeh

帮助将「My Account navigation to menu」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.0.0

  • Initial release.

额外信息

  • 版本 1.0.0.0
  • 最后更新:1 周前
  • 活跃安装数量 不到10
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 7.0.2
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    EndpointsmenuMy accountnavigationwoocommerce
  • 高级视图

评级

尚未提交反馈。

Your review

查看全部评论

贡献者

  • MohammadJafar Khajeh

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.