9

I want to capture the click event on the "Save all changes" button?

Is there any callback method like there is when you click (window.send_to_editor) the "Insert into Post" button

Here is a screenshot

  • 2
    Could you maybe use jQuery to add an event listener to the save all changes button based on its class when the modal is opened? – Moose Apr 5 '16 at 15:31
  • 2
    how old is this WordPress version? – seot Sep 6 '16 at 12:01
  • @seot I have seen this upload UI in newest versions of WP. It seems to still be available for plugins to use. – Dan. Nov 27 '16 at 16:03
0

I don't think there is. You will have to use some local (browser-based) Javascript code to attach a function to the on-click event of the button.

(Not a Javascript expert, but perhaps this will point you in a direction of investigation.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.