OK, I’ve found out that I forgot to click “Save changes” in wordpress->settings->permalinks.
Now everything works fine
I also tried to remove page “my-custom-endpoint” but then when I click on my new tab it takes me to 404 error page.
But As I told in point 2) I don’t want it takes me to separate page. I just want to open tab, like any other tabs: Dashboard, Orders, Downloads, Account details etc.
Great thanks for your reply.
But unfortunately it didn’t helped. Nothing changed.
I make something like that:
echo '<div><p>Hello World!</p></div>';
Is it OK?
But I thinks maybe it has something to do with registering the endpoint. There is line like that:
add_rewrite_endpoint( 'my-custom-endpoint', EP_ROOT | EP_PAGES );
Shouldn’t it be instead EP_PAGES something else? But what?
-
This reply was modified 5 years, 12 months ago by pajczur.