0
votes

I am new to WordPress.

I want to call the custom php pages from WordPress theme directly. I don't want to create a page template and link it to pages.

for eg:

www.mydomain.com/customer-account/personal-profile
www.mydomain.com/customer-account/weight-management-chart
www.mydomain.com/customer-account/my-orders
www.mydomain.com/customer-account/notifications

In my theme i will create 4 php pages and somehow i want to access without doing anything in the admin. It is possible to do?

Thanks to all

1
You are looking for endpoints API. Check this link - Nilambar Sharma
Thanks but i want to do without any plugin. - Soundhar Raj
nilambar - i am checking your reference link, do you know how it works for woo-commerce plugin? you can see pages under template/my-accounts/ it can be accessed by the url. I want exactly like this - Soundhar Raj

1 Answers

0
votes

You will need to add actions to your functions.php to insert the code into each page. You would use is_page to insert the code into the appropriate spot in the appropriate page.