Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Create the media frame.
file_frame = wp.media.frames.file_frame = wp.media({
title: jQuery( this ).data( 'uploader_title' ),
button: {
text: jQuery( this ).data( 'uploader_button_text' ),
},
multiple: true // Set to true to allow multiple files to be selected
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment