Answers for "admin-ajax.php 400 (bad request)"

PHP
0

admin-ajax.php 400 (bad request)

(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)
Posted by: Guest on June-07-2021

Code answers related to "admin-ajax.php 400 (bad request)"

Browse Popular Code Answers by Language