jQuery Ajax returning 404 Error, but correct Response

后端 未结 6 1543
既然无缘
既然无缘 2020-12-01 18:07

I\'m posting some data to a PHP script via jQuery AJAX, and everything executes correctly, but it returns a 404 error. In my Firebug console the response from the PHP scrip

6条回答
  •  青春惊慌失措
    2020-12-01 18:39

    Based on the answer from Tim, I changed the hook I was catching from "wp" to "init" in my plugin and it stopped giving me the 404.

提交回复
热议问题