Switch between tabs on “Insert Media” dialog
I found nothing better than: // switch to attachment browser wp.media.frame.content.mode(‘browse’); // refresh attachment collection wp.media.frame.content.view.views._views[“.media-frame-content”][0].views._views[“”][1].collection.props.set({ignore:(+(new Date()))}); Feel free to add proper way of doing this.