Add a subenpoint in myaccount woocommerce

0

I'm creating a page for the myaccount menu of woocommerce, and I realized the need to add sub endpoint and I do not know how to do it, does anyone have any ideas? I tried

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

and I did not succeed

    
asked by anonymous 01.11.2018 / 18:53

1 answer

0

Registering as a 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);
    
01.11.2018 / 19:42