I am using wordpress ajax to trigger a submission. I located the submission code in the submenu page, because of it is have conflict with the function in plugin main page. The problem here is, I should placed the ajax handler in the submenu page function while it will not triggered if it is placed there.
It always returning
0 if the handler is located in the submenu page function. I had added
The Ajax example from Wordpress Codex is also not working if I put it inside the submenu page function of my plugin.
- How to make wordpress ajax working while its handler is placed inside submenu page function?
Thanks in advance!