How do you create a “virtual” page in WordPress

I’m trying to create a custom API endpoint in WordPress, and I need to redirect requests to a virtual page in the root of WordPress to an actual page that ships with my plug-in. So basically, all requests to the one page are actually routed to the other. Example: http://mysite.com/my-api.php => http://mysite.com/wp-content/plugins/my-plugin/my-api.php The point of … Read more

A tool to analyze rewrite rules? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 9 years ago. Improve this question Is there a good tool to analyze my rewrite rules? I always get confused with the regexes and the parameter replacements. … Read more

How to create custom URL routes?

I have a very peculiar requirement, hopefully, I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, let’s say the URL is like this: http://www.example.com/properties/ Each property has a link that should redirect the user to … Read more