Title: Deactivate a Plugin (within the same plugin)
Last modified: August 19, 2016

---

# Deactivate a Plugin (within the same plugin)

 *  [zeeg](https://wordpress.org/support/users/zeeg/)
 * (@zeeg)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/deactivate-a-plugin-within-the-same-plugin/)
 * I’d like to automatically deactivate my plugin, with a message, if they try installing
   it with PHP4.
 * I have a way to not load the PHP5 code, but I need way to do the deactivation(
   and send the message). Any recommendations?

The topic ‘Deactivate a Plugin (within the same plugin)’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [zeeg](https://wordpress.org/support/users/zeeg/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/deactivate-a-plugin-within-the-same-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
