Support » Plugins and Hacks » get Widget ID when is dropped in to the W. panel

  • 2046


    I’m sorry but I cannot figure it how to get an JS(jQuery) event when the Widget is dropped into the widget panel.
    What I need is the Widget unique ID right after it is dropped in the panel. Before the widget is saved.
    Because for now, the ID is present only when the widget is saved (or more precisely, the WP PHP API gives me the right ID only after that event).

    this fires event wehen the Widget is saved

    jQuery('body').ajaxSuccess(function(evt, request, settings) {
    alert('ajax request completed');

    and here they come up with some solution, which I’ not able to grasp.

    I need it for my widget plugin (, where I show&hide some parts of the widget (something like tabs).

    thanks 2046

  • The topic ‘get Widget ID when is dropped in to the W. panel’ is closed to new replies.