Popup box when Clicking on Insert into post button in wordpress

I need to show a alert popup on clicking Insert into Post button in Media Library of WordPress, if the selected Image is less than some width and height in Library. Where can I find the onClick event of that Insert Into Post button, I tried media.php, media-views.js and much more files but couldn’t find the code.

When the selected image size is less than 500(width,height), and user click on Insert Into Post, it shows an alert box with message and return to the same page.

Read more here:: Popup box when Clicking on Insert into post button in wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *