B
B
Boris Belov2015-12-21 20:09:37
PHP
Boris Belov, 2015-12-21 20:09:37

Why is wp-admin/admin-ajax.php giving 0?

Good evening.
I have a question, why is wp-admin/admin-ajax.php giving 0 ?
There is a NEX-Forms callback form, and when you click "Submit" AJAX does not fire, and it returns 0
d7c6301679044b38b679ab264ed38248.png
Help. Why?
---
This error is displayed only on the site on hoster.ru, everything is ok on the timeweb.
And I don't understand why. Files ONE TO ONE.
179e8f9e403748d28eb5c13807278efd.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2015-12-21
@iborisbelov

die(); at the end of the handler
And should be wp_ajax_nopriv_{action}
if the user is not logged in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question