WordPress-Plugin-Boilerplate icon indicating copy to clipboard operation
WordPress-Plugin-Boilerplate copied to clipboard

Could not get Ajax to be recognized except in root plugin file

Open lwoods opened this issue 8 years ago • 1 comments

I am executing an ajax request in an admin page that is generated by my plugin. I tried putting the server-side PHP code in various places in classes in '/admin' but they never could be "found". I ended up putting the code in the base PHP file (not in a class) and it works. That's really not where it should go, but.......

Any ideas?

lwoods avatar Dec 11 '16 23:12 lwoods

Hey @lwoods,

I have been working on a forked version of the boilerplate which includes an example AJAX call. You can find the example files responsible for the AJAX calls at:

I hope that helps with your issue.

oalexdoda avatar Aug 14 '17 09:08 oalexdoda