How to add custom widget image upload in WordPress?

Posted by Pinki | Updated on

IF you want to add custom widget image upload in WordPress? I have simplified the widget a little for this example, removing the for loop as I think you could just create new instances of the widget. This also allows the added benefit of sorting the items. I moved the js to another file as there’s no need to repeat the code.

New js file: use the .on() method instead of .click() to attach the event handler.


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