Adding tab to account page – content issue
-
Hello,
sorry if stupid question. I am still learning wordpress and php at all.My problem is:
on the side – https://github.com/woocommerce/woocommerce/wiki/Customising-account-page-tabs
And everything works fine for me, but have two issues.
1) There is point “Adding content to an endpoint”. And there is such code:function my_custom_endpoint_content() { echo '<p>Hello World!</p>'; } add_action( 'woocommerce_account_my-custom-endpoint_endpoint', 'my_custom_endpoint_content' );
But when I click on my new tab in my account page it takes me to my page “my-custom-endpoint”. But I can’t see anywhere “Hello World!”. So where is that added content? How to get that?
2) I would like to open my new tab content the same as other tabs. I mean on the my account page that I can see the rest of my tabs, and content should be in frame like the rest of tabs (like dashboard, orders etc.). But instead it opens another page which is “my-custom-endpoint”. How to change that?
For any helpe great thanks in advance.
Best Regards
WojtekThe page I need help with: [log in to see the link]
- The topic ‘Adding tab to account page – content issue’ is closed to new replies.