Created
May 15, 2016 00:01
-
-
Save adamsilverstein/9c201b953114fd1f9e3bb998afc57582 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var callbackFunction = function( e ) { | |
console.log( 'Image clicked', e ); | |
// Do ajax stuff here... | |
}; | |
wp.media.view.Attachment.prototype.on( 'click', callbackFunction ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment