I’m getting a very weird issue triggering admin ajax. I added the bellow functions to my functions.php file

add_action(‘wp_ajax_submit_quiz’, ‘quiz_submit’);
add_action(‘wp_ajax_nopriv_submit_quiz’, ‘quiz_submit’);

matter is, only add_action(‘wp_ajax_submit_quiz’, ‘quiz_submit’) this one is executing for logged in user but add_action(‘wp_ajax_nopriv_submit_quiz’, ‘quiz_submit’); this one is not executing on live server. Locally they both work fine.

Any guideline or help will be highly appreciated.

Thanks !

Read more here: WordPress admin_ajax error


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: