Remember the great Iron Maiden song Hooks in you (from their No prayer for the dying album)? Though it’s indeed a significant piece of metal history in itself, i’m not going to write about it now (there’s a lot behind those links anyway). If not that, then what kind of hooks? I just realised today that using the same method for plugins as WordPress, hooks (or event triggers) to be exact, is not that much of a bad idea. It’s the fastest way i think. Even if i’m doing OOP, and they’re just partly that. I’ll have the core objects (database, posts, output, and one with everything else such as string modifiers, date and time, and basic authentication — and most importantly plugin management — since it’s so “huge”, i’m thinking about splitting it up or putting most of its stuff into modules or plugins) and the dynamically loaded plugin library. Here and there in the code, there’ll be trigger points, where i trigger a registered event (if it’s unregistered, a notice level error will occur), the plugin handler checks which plugins’ which functions are registered for that event, and executes them. It gave me a minute’s trouble to figure out how to pass variables, because they need to be passed by reference. But there are cases, when no parameter’s required, and then it’d raise an error, because parameters passed by reference cannot be left empty. I think. ‘Tis so fun, i finally get it on the way. This part i really enjoy.