Admin ajax request return 0 with die()

Add this as well: add_action('wp_ajax_nopriv_my_action', 'my_action_callback');. Notice the nopriv.

It will solve your problem!

Leave a Comment

tech