I would need to execute some code when an instance of a widget is created and destructed.
For creation I mean when a widget is dragged in a sidebar in the Widget admin page.
For destruction I mean when the widget is deleted form the same sidebar.
I was not able to find any suitable action hooks, so I was wandering if it is something that should be added or if I am approaching the problem in a wrong way.
If needed I can provide more details, thanks in advance.
- The topic ‘Widgets creation and destruction hooks’ is closed to new replies.