AJAX call using admin-ajax URL is returning 400 bad request

you forgot the “action” key in your data array. With that key you define which function is called from your plugin or function.php File. For more information see the WordPress documentation – AJAX in Plugins

Leave a Comment

error code: 523