• I am just starting to build wordpress plugin. WHEN i am testing the ajax request (which should show “success” on proper working) , There is always “/wp-admin/admin-ajax.php 400 (Bad Request)” message in console. This initiator is labeled as Jquery.js file . The “xhr.send( options.hasContent && options.data || null );” line jquery.js file is labeled as “Failed to load resource”. I have tried everything but still not able to fix it . Please help.

    • This topic was modified 8 years, 2 months ago by isambits.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It sounds like your Ajax call has not correctly built the data array that is posted with the request. Please post your jQuery code that makes the Ajax call, including any code related to organizing the passed data.

Viewing 1 replies (of 1 total)

The topic ‘Bad request on ajax call’ is closed to new replies.