Add a subenpoint to myaccount Woocommerce

Asked

Viewed 18 times

0

i am creating a page for Woocommerce myaccount menu, and realized the need to add a sub endpoint and don’t know how to do it, does anyone have any idea? I tried

add_rewrite_endpoint('multiple-address', EP_PAGES);
add_rewrite_endpoint('multiple-address/form-address', EP_PAGES);

and did not succeed

  • Lukan, try to reverse, put the subendpoint before.

  • @cbonomini inverti and it worked! Thank you very much !!!

1 answer

0


Logging as response, to make it clearer. To work, add the most specific endpoint before.

add_rewrite_endpoint('multiple-address/form-address', EP_PAGES);
add_rewrite_endpoint('multiple-address', EP_PAGES);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.