Accessing the MainWP API?

I don’t have much experience with PHP, I code my custom projects with javascript. Currently, I use MainWP to manage Worpdress client sites and I wanted to pull info for each site into my javascript app.

Is there a way I can do this already?

If not how hard would it be to expose MainWP API?

Hi Matthew, have you checked the MainWP Codex?

If you check the maiwnp-getsites filter you will be able to find details about it and see how to pull site info. Please see here:

If your building an extension or add on I recommend building it for the forthcoming Beta 4.1 which can be found here and use the referenced code here

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.