11

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

3
  • 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, 2016 at 15:31
  • 2
    how old is this WordPress version?
    – seot
    Sep 6, 2016 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, 2016 at 16:03

2 Answers 2

1

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.)

1

You should got a class for that button Try to find it and, if exists, you can fire event i.e using jQuery:

jQuery(".button-class").click(...);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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