Skip to content

Commit

Permalink
Fix plugin_xxx_deactivate hook execution
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and btry committed Sep 18, 2024
1 parent 6ba01ed commit 8ef64a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8ef64a6

Please sign in to comment.