How to locate the js code and php code of WordPress website for certain function?
For example, I want to debug the code for uploading an image when composing a post in WordPress backend. I click the “Add Media” button, right-click on the “Media Library” tab, click the “Inspect” item on the context menu(Firefox). Then I click the “event” button at the end of a <div id=”__wp-uploader-id-2…> element, and find several drop event handlers,one of which is tagged with jQuery, the others are tagged with “Bubbling DOM2”. I click the event handlers and get these code: