Custom WP3.5 Media Uploader WITH sidebar

I have seen countless articles about how to launch a custom version of the WP3.5 Media uploader without the sidebar but cannot for the life of me find anything that actually tells you how to launch it WITH one.

I have modified things quite a bit to allow users to sideload when they use the ‘Insert From URL’ option and want to enable the ‘Insert from URL’ option in other areas of my application.

Read More

Ideally I’d like this to appear as a third option when viewing the uploader in image mode so you have ‘upload files’ | ‘media library’ | ‘insert from URL’ but failing that I’d just like the side bar to show…

I am currently using this

ImageChooser = wp.media.frames.icsImageChooser = wp.media({
            // Set the title of the modal.
            title: 'Choose or Upload Image',

            // Tell the modal to show only images.
            library: {
                type: 'image'
            },
            // Customize the submit button.
            button: {
                // Set the text of the button.
                text: 'Use This'
            }
        });

Does any one know what I need to add to that to achieve either of my desired outcomes as described above?

Related posts

Leave a Reply