WordPress.org

Support

Support » How-To and Troubleshooting » Widget > Remove

Widget > Remove

  • Hi

    Is there any way I can add a action to be executed after the user removes a widget from the sidebar? I didn’t find any action hooks for add_action() related to this 🙁

    The widget I’m working on stores temporary data into the database and I need to attach a function that clears this data when the widget is removed.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget > Remove’ is closed to new replies.