How to refresh media library without refreshing page

by Komentos   Last Updated July 11, 2019 09:08 AM

I'm trying to update the contents of the media library after adding a new image. I use this line for this wp.media.frame.content.get().collection._requery(true); but it does not work after opening/closing any image details. Can anyone suggest a different way to update the contents of the media library?



Related Questions


Wordpress Media Permalink Patterns

Updated December 05, 2018 18:08 PM