By default, when clicking on insert media and selecting an image, we get ‘Attachment Display Settings’.
I am creating a custom Media Library for a Custom Post using the following code:
customImageManagementTool = wp.media.frames.customImageManagementTool = wp.media({
className: 'media-frame tgm-media-frame',
multiple: true,
title: "Select Images",
library: {
type: 'image'
},
button: {
text: "Insert selection"
}
});
customImageManagementTool.open()
invokes the Media Library, but does not include ‘Attachment Display Settings’ in the popup.