diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 97604af4..fbaa5e40 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -218,9 +218,9 @@ class Plugins { $hooks = []; foreach(self::getAllPluginsJson() as $plugin) { if (isset($plugin['hooks'])) { - $priority = 1000; - foreach ($plugin['hooks'] as $_name => $info) { + $priority = 1000; + if (str_contains($info['type'], 'HOOK_')) { $info['type'] = str_replace('HOOK_', '', $info['type']); }