Fix: Clear hooks on plugin uninstall

Fixes error with gesior-shop-system clear-cache.php being called, despite it's removed
This commit is contained in:
slawkens
2026-04-11 17:49:22 +02:00
parent a27b8a4fa5
commit 4145d9eb3c
2 changed files with 25 additions and 0 deletions

View File

@@ -868,6 +868,11 @@ class Plugins {
}
}
global $hooks;
foreach($plugin_info['hooks'] ?? [] as $name => $info) {
$hooks->unregister($name, $info['type'], $info['file']);
}
clearCache();
return true;
}