Haysky Technologies

Nandikotkur, Kurnool Dist.

+91 8498000172

Customer Support

Mon - Sat: 9:00 - 5:00

Office Timings

How to add extra items to Woocommerce My Account Menu

my account menu

Add New pages to Woocommerce My Account Menu in user side. Add new menu items to woocommerce my account page. Programmatically using custom plugin or code.

Extra Items to Woocommerce My Account Menu

  1. Go to Woocommerce Code Generator.
  2. Enter the name of the Menu Item you want to Add.
  3. Add new rows for more menus items.
  4. Click on “My Account Menu” buttoon below.
  5. Code will be generated, copy it.
  6. Add the output to your WordPress site.

You should create php files for each menu item. The content of php files is displayed when user clicks on that Menu Item.

Save Permalinks once again:

Because we have added new rewrite rules and endpoints, we need to Go to Settings -> Permalinks in WordPress Dashboard. No need to change anything just click on save button. This should be done only when we add or change rewrite rules (endpoints).


Example:

For example the inputs are: my_profile and my_data

The output code will be:

You have to add this code to your index file. Other wise you can create new file and include that file in index file.

After this you have you create my_profile.php and my_data.php. You can add content to those files. Suppose we have add Hello world to my_profile.php file.

When user goes to My Account page and clicks on My Profile button, the content “Hello World” will be displayed.

Picture of Sufyan Shaik

Sufyan Shaik

Leave a Replay

Sign up for our Newsletter

Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit