diff --git a/src/Plugin.php b/src/Plugin.php index 79fd2a15d0c..465343e0b4b 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -1116,6 +1116,9 @@ public function unactivate($ID) { if ($this->getFromDB($ID)) { + // Load plugin hooks + self::load($this->fields['directory'], true); + $deactivate_function = 'plugin_' . $this->fields['directory'] . '_deactivate'; if (function_exists($deactivate_function)) { $deactivate_function();