Create new tab under my account WooCommerce frontend

Create new tab under my account WooCommerce frontend

In this article I will show you how you can add new tabs with content in woocommerce user account page without any plugin. there are several plugins which can do this thing in very easy way, but they makes the website slow. So I'm going to use add_rewrite_endpoint function to add new tabs under my account page.
Use below code to add new tabs under woocommecre my account. Here I will add two new tabs gallery and categories.

Adding Tabs

function my_custom_woocommerce_tabs() {
    add_rewrite_endpoint( 'gallery', EP_ROOT | EP_PAGES );
    add_rewrite_endpoint( 'categories', EP_ROOT | EP_PAGES );
}
add_action( 'init', 'my_custom_woocommerce_tabs' );

Assign templates for new added tabs

 

Also Read: Create plugin in WordPress in which create table in DB on activate
function my_custom_woocommerce_tabs() {
    include 'woocommerce/myaccount/gallery.php'; 
include 'woocommerce/myaccount/category.php'; } add_action( 'woocommerce_account_gallery_endpoint', 'my_custom_woocommerce_tabs' );

 

Also Read: Custom social media validations with validator jQuery

In this article I will show you how you can add new tabs with content in woocommerce user account page without any plugin. there are several plugins which can do this thing in very easy way, but they makes the website slow. So I'm going to use add_rewrite_endpoint function to add new tabs under my account page.
Use below code to add new tabs under woocommecre my account. Here I will add two new tabs gallery and categories.

Adding Tabs

function my_custom_woocommerce_tabs() {
    add_rewrite_endpoint( 'gallery', EP_ROOT | EP_PAGES );
    add_rewrite_endpoint( 'categories', EP_ROOT | EP_PAGES );
}
add_action( 'init', 'my_custom_woocommerce_tabs' );

Assign templates for new added tabs

 

Also Read: Create plugin in WordPress in which create table in DB on activate
function my_custom_woocommerce_tabs() {
    include 'woocommerce/myaccount/gallery.php'; 
include 'woocommerce/myaccount/category.php'; } add_action( 'woocommerce_account_gallery_endpoint', 'my_custom_woocommerce_tabs' );

 

Also Read: Custom social media validations with validator jQuery

Please let me know what your thoughts or comments are on this article. If you have any suggestion or found any mistake in this article then please let us know.

Latest Comments

women
women
08 Feb 2022

If I am perusing the net, typically I like to start reading articles that I discover. Generally, I'm able to find new information and facts, or perhaps a unique style of viewing things that I had not thought of before. When this occurs, I'm always grateful. Since I might not have a chance to go online that much, simply because of my job as an masasge at home therapist, I make an effort to make use of my experiences on the internet. https://battleinterference.wordpress.com/2021/07/07/is-a-massage-therapy-or-pampering/

in-home PMS massage in New Jersey
in-home PMS massage in New Jersey
10 Feb 2022

I actually many times come upon content like this at the most unexpected occasions. Such as right now, I had been seeking out a specific thing on an absolutely different topic and I encountered this blog in its place. I generally like scanning the world wide web for articles or blog posts, however principally I prefer to be out of doors, experiencing the outdoors in the local forest land. There's nothing like outdoors to cause you to feel revitalized. This can be when I am not earning a living as an in-home massage therapist. That consumes most of my own energy. https://ashleysboringblog.wordpress.com/tag/massage-for-women/

NJ Massages
NJ Massages
11 Feb 2022

Hello, blog person and viewers! I actually can declare the fact I fancy the Net. The increase of the personal blog website, with regards to me, has been pretty much the best development ever before! I really like reading personal blogs, and this kind of blog is no doubt absolutely no different. I am employed as an Chair Party Massage Advisor. Which fortunately renders me having quite a lot of leisure time during the work day to study web logs and so on. I'd personally instead read blogs and forums when compared to media just about any time. Just what normal people today have to convey, what they feel and contemplate, that is important to me personally indeed very much greater. A blog page is so individual and quite heart-felt for the reason that it will come as a result of a person's vision and inner expression of themselves. Obviously, I don't quite suggest a web log for a record-breaking conglomerate; that's probably not a "web log" whatsoever! https://njmassages.com/Event-Massage-Party/

womens massage
womens massage
17 Feb 2022

Whenever I am scannnig cyberspace, typically I like to browse posts which i unearth. Quite often, I'm able to find innovative data, or a modern strategy for contemplating problems that I had not considered earlier. During these moments, I'm frequently grateful. Mainly because I don't have opportunities to search online that much, caused by my job as an masasge at home therapist, I endeavor to make the most of my experiences on-line. https://lonniesnjblog.wordpress.com/

Willy
Willy
17 Feb 2022

Hey there! I could have sworn I've been to this website before but after browsing through some of the post I realized it's new to me. Nonetheless, I'm definitely happy I found it and I'll be book-marking and checking back often! professional copy editing services (Son)

getting a post natal massage
getting a post natal massage
18 Feb 2022

In real life, many themes are considerably more elaborate than an ordinary amateur viewer could decide on, in line with their vantagepoint. I'm not declaring that I happen to be a professional person on this subject at-hand, and so I assume it's for other community forum people to check out. I am certainly not making an attempt to start problem or be exasperating. Instead, I fully understand from experience that the aforementioned might be the instance. I am skilled in Postnatal Massage, and in my own personal selected concentration, I experience it significantly. Just-graduated Postnatal Massage Practitioners are likely to exaggerate promises; which may be, these individuals don't yet honestly comprehend the constraints of their "scope of practice," and so they possibly will come up with promises that are too general when coming into contact with clients. It's the same exact occurrence; they have been brought in to a topic, don't recognize the thorough depth of it all, and now assume they are the Specialists. http://at-home-massage-nj.njmassage.info/at-home-massage/wp-content/uploads/2015/02/Resting-By-Dan-Iggers-300x200.jpg

post natal massage therapy in home
post natal massage therapy in home
19 Feb 2022

This blog is significant. Subject matter such as this are consistently forgotten about, if perhaps fact be discussed. Typically the highest quality of the World wide web is not really the very most vastly promoted subject matter, nonetheless instead almost everything other than them, the brushed aside public with blogs that are simply significantly more suitable as opposed to all those of major famous individuals. Now this is such a blogging. I will certainly provide suggestions, sometimes each time not motivated to do so. First of all is, continue crafting. Secondary is, continue to keep crafting on a regular basis. Finally is, start using your individual web log to grow your particular approach. I am absolutely not a blog owner per se; I am honestly a Postpartum Massage Therapist. I practice Postnatal Massage Therapy, enabling a lot of women to heal following having a newborn. It's worthwhile activity. That is what I invest the majority of of my energy undertaking, yet I have definitely appreciated composing from the time frame I was small. I go through a good number of books and every calendar year I go through a pile way higher as compared with myself. rofl In the next calendar year, could be I will get really serious related to operating a blog. The issue is, it cannot solely a notion; the function of creating and building often will make a blog page blossom over time. http://at-home-massage-nj.njmassage.info/at-home-massage/wp-content/uploads/2015/02/Cadence-Newborn-by-Christopher-Allison-Photography-300x200.jpg

Julieta
Julieta
19 Feb 2022

Everything said made a bunch of sense. But, think about this, suppose you typed a catchier post title? I mean, I don't wish to tell you how to run your blog, however what if you added a headline to maybe get folk's attention? I mean Create new tab under my account WooCommerce frontend - PhpEsperto.com is a little plain. You might look at Yahoo's home page and see how they create article titles to grab people to open the links. You might add a related video or a related picture or two to get readers interested about everything've written. Just my opinion, it could make your blog a little livelier. academic proofreading

Hugo
Hugo
20 Feb 2022

Fine way of explaining, and nice paragraph to get information on the topic of my presentation subject, which i am going to convey in academy. the writing services

Angelica
Angelica
21 Feb 2022

I was suggested this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You're amazing! Thanks! english translate to hausa

Boris
Boris
25 Feb 2022

Excellent post. I was checking constantly this blog and I am impressed! Extremely useful info specially the last part :) I care for such info much. I was seeking this particular information for a very long time. Thank you and best of luck. how to write a professional resume

Nolan
Nolan
25 Feb 2022

Attractive portion of content. I simply stumbled upon your web site and in accession capital to say that I get in fact enjoyed account your weblog posts. Anyway I will be subscribing on your feeds or even I fulfillment you access constantly fast. online translation jobs french to english

Tomoko
Tomoko
26 Feb 2022

website

Kari
Kari
01 Mar 2022

It's going to be end of mine day, but before finish I am reading this enormous post to increase my experience. proofreading (Hermine)

where is a kids spa in nj
where is a kids spa in nj
01 Mar 2022

I am often searching for new information on this kind of crucial theme, and am especially ecstatic when I find blogs that are well-written and well-researched. Thank you for providing this excellent information, and I glimpse ahead to reading more from your blog in the near future. https://njmassage.info/kids

Rueben
Rueben
02 Mar 2022

wonderful publish, very informative. I'm wondering why the other experts of this sector don't realize this. You should proceed your writing. I am confident, you've a huge readers' base already! english translator career

Florene
Florene
04 Mar 2022

Hi, just wanted to say, I loved this blog post. It was helpful. Keep on posting! translation job english to french online

Marcela
Marcela
26 Mar 2022

First off I want to say superb blog! I had a quick question which I'd like to ask if you don't mind. I was curious to find out how you center yourself and clear your head before writing. I have had a difficult time clearing my thoughts in getting my ideas out there. I truly do take pleasure in writing however it just seems like the first 10 to 15 minutes are generally wasted just trying to figure out how to begin. Any recommendations or tips? Thanks! writing term paper service

Meagan
Meagan
12 Jun 2022

It's really a nice and useful pirce of info. I'm happy that yoou shared this useful informatgion with us. Please stay us up to date like this. Thank yoou forr sharing. Essay writing web site Essay

Veda
Veda
13 Jun 2022

If you desire to increase your experience simply keep visiting this site and be updated with the most up-to-date news posted here. Essay Topics for 2022 web site Essay writing

Add your comment

Close