What a type you work with response
If you work with json
$.post( ajaxurl , data , function(res){
// your code
},'json');
Remove wp_die() and replace with die()
What a type you work with response
If you work with json
$.post( ajaxurl , data , function(res){
// your code
},'json');
Remove wp_die() and replace with die()