Fires after a plugin is deactivated.
If a plugin is silently deactivated (such as during an update), this hook does not fire.
$pluginstring
$network_deactivatingbool
This hook is run immediately after any plugin is deactivated, and may be used to detect the deactivation of other plugins.
do_action( 'deactivated_plugin', $plugin, $network_deactivating );
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/deactivated_plugin