Widgets
Enqueing a script
For the widget form in the admin area
For the frontend
Events
A New Widget is Added, or Re-ordered
jQuery( document ).ready( function( $ ) {
function doWidgetStuff() {
var found = $( '#widgets-right .mywidgetelement' );
found.each( function( index, value ) {
// process elements
} );
}
window.counter = 1;
doWidgetStuff();
$( document ).ajaxStop( function() {
doWidgetStuff();
} );
} );The widget form opens
Further Reading
Last updated