Custom page slug without creating a WP page

I am developing a WP plugin in which I have a WP page called my-account, but I have some more child pages of its like account-edit, account-misc etc… so I would like to call these pages in this way mydomain.com/my-account/account-edit and mydomain.com/my-account/account-misc I don’t know how to do this without creating WP pages, I have tried some add_rewrite_rule but that doesn’t work what I expected.

Read more here: Custom page slug without creating a WP page

Leave a Reply

Your email address will not be published. Required fields are marked *