PHPackages                             mjkhajeh/wc-my-account-links - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mjkhajeh/wc-my-account-links

ActiveProject[Utility &amp; Helpers](/categories/utility)

mjkhajeh/wc-my-account-links
============================

Remove, rename, and reorder WooCommerce My Account navigation links.

00PHP

Since Jun 20Pushed todayCompare

[ Source](https://github.com/mjkhajeh/wc-my-account-links)[ Packagist](https://packagist.org/packages/mjkhajeh/wc-my-account-links)[ RSS](/packages/mjkhajeh-wc-my-account-links/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

WC My Account Links
===================

[](#wc-my-account-links)

> Remove, rename, and reorder WooCommerce My Account navigation links from a polished admin UI.

[![WordPress](https://camo.githubusercontent.com/48967903147d81e6136ae77f117208ae617f2ea94fe18db86980c070c9360432/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d3231373539623f6c6f676f3d776f72647072657373266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/48967903147d81e6136ae77f117208ae617f2ea94fe18db86980c070c9360432/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d3231373539623f6c6f676f3d776f72647072657373266c6f676f436f6c6f723d7768697465)[![WooCommerce](https://camo.githubusercontent.com/71d8c708fb71f183475c23a8526faa76bfb56c410a9ab307431c2d2d829e8476/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f6f436f6d6d657263652d72657175697265642d3936353838613f6c6f676f3d776f6f636f6d6d65726365266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/71d8c708fb71f183475c23a8526faa76bfb56c410a9ab307431c2d2d829e8476/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f6f436f6d6d657263652d72657175697265642d3936353838613f6c6f676f3d776f6f636f6d6d65726365266c6f676f436f6c6f723d7768697465)[![PHP](https://camo.githubusercontent.com/7a63b4feadb1b7f26c30b94700d02e8002af284679f917463844e9e3097124ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342532422d3737376262343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/7a63b4feadb1b7f26c30b94700d02e8002af284679f917463844e9e3097124ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342532422d3737376262343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![License](https://camo.githubusercontent.com/41b45c4d77e22615074679ba286e8b46a36f5fd8781ba3759763dc6c7321303f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322532422d677265656e)](https://camo.githubusercontent.com/41b45c4d77e22615074679ba286e8b46a36f5fd8781ba3759763dc6c7321303f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322532422d677265656e)

---

Features
--------

[](#features)

- **Toggle visibility** — show or hide any My Account navigation item with a single switch
- **Rename items** — set a custom label per item, or reset it back to the WooCommerce default with one click
- **Drag-and-drop reordering** — rearrange items without typing numbers or reloading the page
- **Global reset** — restore all WooCommerce defaults in one action
- **Third-party plugin safe** — endpoints added by other plugins are preserved unless you explicitly configure them
- **Graceful degradation** — does nothing harmful if WooCommerce is deactivated; shows a clear admin notice instead

---

Screenshots
-----------

[](#screenshots)

[![screenshot-1](https://private-user-images.githubusercontent.com/81983167/610793239-6ab2938e-2fc5-4da3-91b5-11f488e3c5b9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODIwMDc4ODgsIm5iZiI6MTc4MjAwNzU4OCwicGF0aCI6Ii84MT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DAmWC1BbXotU2lnbmF0dXJlPTFmY2Q4MjZhNzRiZWNhYzE4YmM4OWQ4MWZhYzg3ZDVhYjJjMThhYWRiYTBiZjk1ZTA4NzNlNGEyYmEwMzI0MWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.wqxNL73qkge91V8bY2nNpyccNTKoVf-wiueguIVREuA)---

Requirements
------------

[](#requirements)

RequirementVersionWordPress6.0 or laterWooCommerceAny recent version (must be active)PHP7.4 or later---

Installation
------------

[](#installation)

**Via WordPress admin (recommended)**

1. Go to **Plugins → Add New → Upload Plugin**
2. Upload the `wc-my-account-links.zip` file
3. Click **Install Now**, then **Activate**

**Manual install**

1. Clone or download this repository
2. Copy the `wc-my-account-links` folder to `/wp-content/plugins/`
3. Activate the plugin through the **Plugins** menu in WordPress

Once activated, navigate to **WooCommerce → My Account Links** to configure the navigation.

---

Usage
-----

[](#usage)

1. Open **WooCommerce → My Account Links** in the WordPress admin
2. **Toggle** the switch in the *Visible* column to show or hide an item
3. **Type** in the *Custom Label* field to rename an item (leave blank to keep the WooCommerce default)
4. **Drag** the handle on the left to reorder items
5. Click **Save Settings** in the sticky bar at the bottom

To undo all changes, click **Reset All Defaults** in the top-right corner of the page.

---

How It Works
------------

[](#how-it-works)

Settings are stored in the WordPress Options table under the key `mj_wc_account_links_settings` and applied at runtime via the `woocommerce_account_menu_items` filter (priority 99). This means:

- Customisations survive WooCommerce updates
- No database schema changes are required
- The plugin has zero effect when WooCommerce is inactive

**Option schema**

```
{
  "items": {
    "": {
      "enabled": true,
      "label": "Custom Label or empty string"
    }
  }
}
```

---

Project Structure
-----------------

[](#project-structure)

```
wc-my-account-links/
├── woocommerce-my-account-links.php        Entry point, constants, Init class
├── class-mj-wc-account-links.php           Core singleton — frontend filter & settings helpers
├── class-mj-wc-account-links-admin.php     Admin page, save/reset handlers, notices
├── admin.js                                Drag-and-drop, toggle state, label reset, form submit
├── admin.css                               Admin UI styles (responsive, RTL-aware)
├── composer.json                           PSR-4 autoload config
└── readme.txt                              WordPress.org plugin readme

```

---

Hooks Reference
---------------

[](#hooks-reference)

HookPriorityPurpose`plugins_loaded`20Bootstrap; check WooCommerce is active`admin_menu`defaultRegister submenu under WooCommerce`admin_enqueue_scripts`defaultEnqueue CSS/JS only on the plugin page`admin_post_mj_wc_account_links_save`—Handle settings save form`admin_post_mj_wc_account_links_reset`—Handle reset-all form`woocommerce_account_menu_items`99Apply saved settings on the frontend---

FAQ
---

[](#faq)

**Will my customisations survive a WooCommerce update?**
Yes. Settings live in the WordPress Options table and are applied via a WooCommerce filter, so they persist across updates.

**I have a third-party plugin that adds extra My Account items. Will they appear?**
Yes. The plugin only modifies items it knows about. Any endpoint registered after your last save is appended in its default position. Visit the settings page and save again to take control of newly added items.

**Can I reorder or hide the Logout link?**
Yes — `customer-logout` is treated the same as any other endpoint.

**What happens if I deactivate WooCommerce?**
The plugin detects that WooCommerce is missing, shows an admin notice with options to install or activate it, and does nothing else.

---

Contributing
------------

[](#contributing)

Pull requests are welcome. For significant changes, please open an issue first to discuss what you'd like to change.

1. Fork the repository
2. Create a feature branch: `git checkout -b feature/my-change`
3. Commit your changes: `git commit -m 'Add my change'`
4. Push to the branch: `git push origin feature/my-change`
5. Open a pull request

---

License
-------

[](#license)

Licensed under the [GNU General Public License v2.0 or later](https://www.gnu.org/licenses/gpl-2.0.html).

---

Author
------

[](#author)

**MohammadJafar Khajeh** — [mjkhajeh.ir](https://mjkhajeh.ir)
Plugin page: [wordpress.org/plugins/wc-my-account-links](https://wordpress.org/plugins/wc-my-account-links/)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b7e4293c9f0f03906ad75a2e557157b3c12919babd31bd1e7bf27694e753011?d=identicon)[mjkhajeh](/maintainers/mjkhajeh)

---

Top Contributors

[![mjkhajeh](https://avatars.githubusercontent.com/u/81983167?v=4)](https://github.com/mjkhajeh "mjkhajeh (3 commits)")

### Embed Badge

![Health badge](/badges/mjkhajeh-wc-my-account-links/health.svg)

```
[![Health](https://phpackages.com/badges/mjkhajeh-wc-my-account-links/health.svg)](https://phpackages.com/packages/mjkhajeh-wc-my-account-links)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
