0

I'm new to wordpress development and was wondering how to create a custom php file (like: mysounds.php) which would use a php file in my plugin directory.

So in other words: I create a php file in my plugin directory and create a route that users can enter in the address bar to reach that page.

How should one go about doing this?

  • 2
    What are you trying to accomplish? Do you just want custom content on the page? If so, a shortcode may work for that – czerspalace Apr 20 '15 at 18:23
  • I want to create a custom api point where I can process data coming in – pzirkind Apr 20 '15 at 18:53
  • Then you should have asked how to create a custom api endpoint where you can process data coming in :) – Tom J Nowell Apr 20 '15 at 18:55
  • :) as a newb to wordpress the question is more general, since i want to know how to make custom pages, in this specific example its for an api ;) – pzirkind Apr 20 '15 at 18:59
  • 1
    a custom page and an endpoint are different things, and have different solutions. – Milo Apr 20 '15 at 19:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.