Is there no hook for when a widget is removed from a sidebar? (2 posts)

  1. philipwalton
    Posted 5 years ago #

    I'm trying to find a hook or set of hooks to apply action whenever the dynamic sidebars are updated, but there doesn't seem to be enough hooks to cover all scenarios.

    The only thing I could find is 'widget_update_callback', which is only called when individual widget options are changed, but I can't find anything that is triggered when the widget display order is changed or when a widget is removed from a sidebar altogether.

    Does anybody know of any additional hooks I can use?

  2. rukbat
    Posted 5 years ago #

    Hi, I think update_option_sidebars_widgets could be a good choice. This hook seems to be triggered when widgets are moved or removed from sidebars...

Topic Closed

This topic has been closed to new replies.

About this Topic