Title: Plugin hooks for Plugin activity
Last modified: August 21, 2016

---

# Plugin hooks for Plugin activity

 *  [Johnb81](https://wordpress.org/support/users/johnb81/)
 * (@johnb81)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-hooks-for-plugin-activity/)
 * I would like to know if there are any hooks available which can be used to detect
   other WordPress plugins activity. Basically I would like to trigger an action
   when an administrator:
 * 1. installs a plugin
    2. activates a plugin 3. deactivates a plugin 4. Uninstalls/
   deletes a plugin
 * Thanks in advance for your answers.

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-hooks-for-plugin-activity/#post-3704097)
 * There are ‘activated_plugin’ and ‘deactivated_plugin’ actions. I’m unaware of
   a way to detect if the files were simply installed. There is a ‘uninstall_{$file}’
   action, but of course you need to know what $file is. In any case, it’s possible
   to add or delete plugin files without WP being involved at all, so install and
   uninstall actions would be unreliable.

Viewing 1 replies (of 1 total)

The topic ‘Plugin hooks for Plugin activity’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-hooks-for-plugin-activity/#post-3704097)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
