WordPress admin_ajax error

68 Views Asked by At

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 !

0

There are 0 best solutions below