WordPress.org

Ready to get started?Download WordPress

Forums

Widget > Remove (3 posts)

  1. digitalnature
    Member
    Posted 4 years ago #

    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.

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    Refer this article:

    http://codex.wordpress.org/Function_Reference/add_action

    Thanks,

    Shane G.

  3. digitalnature
    Member
    Posted 4 years ago #

    well I know that. the problem is that I can't find the appropriate action hook ($tag) for the widget "remove" link

Topic Closed

This topic has been closed to new replies.

About this Topic