I am making a plugin that needs a page that can be accessed from the outside, pretty much like an API, and have the url like so,
http://xxxxx/custom_method?parameter=xxxxx&something=xxxx
is there a clean way to do this?
Thanks in advance.
I am making a plugin that needs a page that can be accessed from the outside, pretty much like an API, and have the url like so,
http://xxxxx/custom_method?parameter=xxxxx&something=xxxx
is there a clean way to do this?
Thanks in advance.
You must be logged in to post a comment.
The WordPress Way of doing it is using
query_vars
so first you add you vars to the array:then you can check in your plugin for the vars: