Title: Deactivate plugin?
Last modified: August 20, 2016

---

# Deactivate plugin?

 *  [luckdragon](https://wordpress.org/support/users/luckdragon/)
 * (@luckdragon)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/deactivate-plugin/)
 * is it possible to have the installation of one plugin deactivate another?
 * i.e. I have a lite version and a pro version of a plugin I’m working on, when
   they install the pro version, I want it to detect if the lite version exists,
   and if it does, automatically deactivate it.

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 11 months ago](https://wordpress.org/support/topic/deactivate-plugin/#post-2792657)
 * I’ve not tried it myself (untested) but I _believe_ you can do it via deactivate_plugins().
 * [http://queryposts.com/function/deactivate_plugins/](http://queryposts.com/function/deactivate_plugins/)

Viewing 1 replies (of 1 total)

The topic ‘Deactivate plugin?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/deactivate-plugin/#post-2792657)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
