Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lwoods opened this issue Dec 11, 2016 · 1 comment
Open

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

lwoods opened this issue Dec 11, 2016 · 1 comment

Comments

@lwoods
Copy link

lwoods commented Dec 11, 2016

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?

@oalexdoda
Copy link

oalexdoda commented Aug 14, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants