media – save all changes hook – refresh current page
-
I have a custom post, when the user has uploaded all their attachments via the media upload button, click save all changes, then closes the media box.
They then click ‘save draft’ or ‘publish’ and I have then loaded in all attachments to the post in a list underneath the post title. This works fine, however if the user then re-orders the image attachments in the media upload box (under gallery), the new order of images is not the same as the original loaded image list in the main post edit window.
So, I’ve found a hook to save custom meta boxes in the media upload box, but this fires on every attachment. When the user clicks ‘save all changes’, ideally I need the page to either refresh, or reload the post main editor window to reflect the new order changes.
Make sense??!
- The topic ‘media – save all changes hook – refresh current page’ is closed to new replies.