Title: Hooking a deactivate function
Last modified: August 18, 2016

---

# Hooking a deactivate function

 *  [nutsmuggler](https://wordpress.org/support/users/nutsmuggler/)
 * (@nutsmuggler)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/hooking-a-deactivate-function/)
 * I am building a new plugin.
    I need to get some code executed when the plugin
   gets uninstalled, in order to remove options, pages, etc. Ho do I hook in? I 
   couldn’t find anything in the wordpress wiki.. Thanks in advance, Davide

The topic ‘Hooking a deactivate function’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [nutsmuggler](https://wordpress.org/support/users/nutsmuggler/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/hooking-a-deactivate-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
