admin-Ajax.php 400 (zła żądanie)
(function( $ ) {
var ajaxscript = { ajax_url : 'yourdomain.com/wp-admin/admin-ajax.php' }
$.ajax({
url : ajaxscript.ajax_url,
data : {
action : 'post_cart_clb',
id : 1
},
method : 'POST', //Post method
success : function( response ){ console.log(response) },
error : function(error){ console.log(error) }
})
})(jQuery)
Sleepy Squirrel