Title: [Plugin &amp; Widget dev] troubleshooting with wp_unregister_sidebar_widget
Last modified: August 20, 2016

---

# [Plugin & Widget dev] troubleshooting with wp_unregister_sidebar_widget

 *  [joprog67](https://wordpress.org/support/users/joprog67/)
 * (@joprog67)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-widget-dev-troubleshooting-with-wp_unregister_sidebar_widget/)
 * Hi everybody,
 * I have a problem with plugin (widget) development in wordpress.
 * Indeed, I want to execute an action when user remove a widget from a sidebar 
   in the admin appearance panel but I don’t have any results, I think wordpress
   don’t execute my function.
 * For more informations, I have this code in my plugin file :
 * add_action (‘wp_unregister_sidebar_widget’, array ($PressReviewer, ‘removeFromSidebar’));
 * Someone can help me, please ?
 * Tank you ! And have a nice day !

The topic ‘[Plugin & Widget dev] troubleshooting with wp_unregister_sidebar_widget’
is closed to new replies.

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 0 replies
 * 1 participant
 * Last reply from: [joprog67](https://wordpress.org/support/users/joprog67/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-widget-dev-troubleshooting-with-wp_unregister_sidebar_widget/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
