Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created December 21, 2012 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/234f2d50faeced9cdb21 to your computer and use it in GitHub Desktop.
Save mikejolley/234f2d50faeced9cdb21 to your computer and use it in GitHub Desktop.
// 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