I use ajax with jquery and when I tried to display the result in popup. Then alert always displays 0
0
success : function(results) { alert(result
I had a similar issue with admin-ajax.php returning 0, even i had die().
My problem was that the add_action was declared in a file not loaded default by plugin.
Anyway, if you have problem also check in browser what __.com/wp-admin/admin-ajax.php?action=youraction returns.