Created
January 13, 2015 00:49
-
-
Save jessepearson/c6e3f7dc105ca87a9e79 to your computer and use it in GitHub Desktop.
Using WordPress jQuery widget added callback
This file contains 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
// if a widget is added, then initialize the media_uploader in that widget | |
$( document ).on( 'widget-added', function( event, target ) { | |
init_media_uploader( target ); | |
} ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment