diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 9484ea0d..8e4b0a39 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -890,7 +890,11 @@ class Plugins { global $hooks; foreach($plugin_info['hooks'] ?? [] as $name => $info) { - $hooks->unregister($name, $info['type'], $info['file']); + if (str_contains($info['type'], 'HOOK_')) { + $info['type'] = str_replace('HOOK_', '', $info['type']); + } + + $hooks->unregister($name, 'HOOK_' . $info['type'], $info['file']); } clearCache();