0

I would like my plugin to create a url which only outputs JSON.

The JSON feed contains settings and other info about this plugin.

I would like to know how my plugin registers a url which only outputs JSON data using Wordpress function.

For example: the user goes to example.com/pluginfeed This is a JSON Feed containing posts, settings and more

  • can you elaborate a bit more? – Tomás Cot Sep 11 '14 at 12:01
  • Just added some info to the question – Andrew Ho Sep 11 '14 at 12:02
  • you want the user to be logged in to access that url? – Tomás Cot Sep 11 '14 at 12:04
  • No thats not necessary. The problem i am facing is that i cant echo json data without the theme, sidebars and default wordpress – Andrew Ho Sep 11 '14 at 12:05
  • 1
    have you considered extending the json rest API plugin thats slated to be bundled into Core soon? – Tom J Nowell Sep 11 '14 at 12:33

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.