Skip to content

Instantly share code, notes, and snippets.

Last active December 10, 2015 00:28
What would you like to do?
// When an image is selected, run a callback.
file_frame.on( 'select', function() {
var selection = file_frame.state().get('selection'); function( attachment ) {
attachment = attachment.toJSON();
// Do something with and/or attachment.url here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment