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