Update widget form after drag-and-drop WordPress save bug

Posted by Prem Tiwari | Updated on

I did battle with a similar situation recently. Ajax in widgets is no joke! Need to write some pretty crazy code to get things to work across instances. I’m not familiar with live query, but if you say it checks the DOM every second, I might have a less intense solution for you:

You can pass this function a selector or jQuery object and it will return the instance ID of the current instance. I could find no other way around this issue.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers