As far as I know, a plugin can be deactivated in these conditions:
- manual deactivation
- failed plugin upgrade
- remove or rename the containing folder
- changing the active plugin list in the database
Hopefully someone else will come through and add to this if I missed any.
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Disable plugin / plugin action via theme
- Add Google Analytics manually, or use a plug-in?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- Google Analytics post views in WordPress? [closed]
- disable active plugins for specific theme
- OOP: Display warning and deactivate the plugin if PHP version is less than 5.4
- Deactivate plugin upon deactivation of another plugin
- Show a confirmation message on plugin deactivation
- Suspicious google tag manager
- Tracking Disqus comments on Google Analytics
- Do you clean up your self-written plugins’ at deactivation?
- How to automate wordpress plugin activate and deactivate by php logic?
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- Deactivate Plugin on Theme Switch
- Plugin Deactivate Self on Activation Errors
- Why my Plugin keeps deactivating automatically?
- google conversion code
- Prevent a plugin from being automatically activated
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- how to deactivate a plugin without using a WP function?
- Invalid plugin installation directory, Google Analytics [closed]
- How to install Google Analytics onto site without internet access
- Moving to a WordPress blog. What do I need to know?
- Where does MonsterInsights put Google Analytics code?
- How to track analytics with a WordPress site under the same domain as my main site?
- WordPress gtag.js with User ID tracking
- How to deactivate my plugin upon deactivation of NextGen
- My plugin does not install correctly if a previous version is still installed
- Google Analytics event tracking code being stripped out of links in Author box – WordPress site
- how does ‘init’ /’parse_request’ hook work for wordpress?
- How to set Google Analytics tracking code on WordPress plugin directory page?
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Different Google Analytics code based on Users Device
- Unset plugins on front-end belonging to specific category
- Tracking sales/conversions in Woocommerce using Google Analytics
- Google analytic issue in wordpress
- Different plugins activated online and offline
- Is it possible to run javascript on plugin deactivated?
- Google analytics not working on WordPress
- Plugins menu not on dashboard
- No Google Analytics code rendered in the header?
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- fix the error : Plugin with id ‘com.android.application’ not found
- Best collection of code for your 'functions.php' file [closed]
- Tips for using WordPress as a CMS? [closed]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Updates for a private plugin?
- Best way to initiate a class in a WP plugin?
- Which banner plugin is this? [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Woocommerce – adding variations to variations [closed]
- Best way to include wp-config.php
- similar of my posts in all over the internet sites and blogs [closed]
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Create custom page templates with plugins?
- Custom Post Type Templates from Plugin Folder?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable update notification for individual plugins
- Passing a parameter to filter and action functions
- Do deactivated plugins slow down a WordPress site?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- How do you debug plugins?
- How to structure a plugin
- What’s the preferred method of writing AJAX-enabled plugins?
- Get Product id from order id in Woocommerce [closed]
- Add multiple plugin directories
- What are the differences between WPINC and ABSPATH?
- Translate a plugin using .po .mo files
- Best way to overide plugin CSS?
- How to add a shortcode button to the TinyMCE editor?
- Where do I put the code snippets I found here or somewhere else on the web?
- Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]
- Get a list of all registered actions
- How can I force a file download in the WordPress backend?
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- In what order does WordPress load plugin files?
- What Features would you Most Like to See Added to WordPress? [closed]
- Given the ID of a product in woocommerce, how can I get its URL?
- Adding Additional Attributes in Script Tag for 3rd party JS
- How can I edit post data before it is saved?
- Manually set global $post vars with an ID, in order to use template tags
- is_plugin_active function doesn’t exist
- How To Activate Plugins via Code?
- ‘Global’ settings page for multisite plugin
- Activate a plugin through PHPMyAdmin or FTP?
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How can I use WordPress functions in my stylesheet?
- How do I show data from gravity forms in my template? [closed]
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- Creating a plugin with dependencies
- How can I make add_image_size() crop from the top?
- Implementing a CrunchBase.com Clone using WordPress?
- Difference between add_filter and apply_filters
- How to enable suggested edits?