My plugin needs to make a POST request to another file within the plugin that will receive the request and store some of its data as a new post in wordpress.
The idea is that different sites that use this plugin as admin will be able to 'receive' posts via this file that will handle POST requests from the 'main' site.
All good but when I make a POST request with some data to a particular receiver php file, this file is not 'aware' that it's part of the plugin hence I can't use the data there within the plugin.
How do I handle this? Thanks