WordPress admin_ajax error

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

Leave a Reply

Your email address will not be published. Required fields are marked *