How does the plugin detection and activation code work?
-
Hello fellow coders!
I’ve always been using WordPress for almost a year now I’ve always been very impressed with the technology behind it. Most impressive imho is the plugin system.
I’m myself a hobby developer and I’m interested in experimenting with a similar modular /plugin based design. It’s quite easy to make with a database storing information about the modules but then you have to “install” the modules manually to work. What I especially like in wordpress is that it detects the new plugins just by browsing through the plugin folder! That’s some neat stuff.
Unfortunately I don’t have a clue how that’s done. I’ve been trying to look at wordpress’ source to figure it out but to no good.
Could someone who actually knows anything about this give me a little heads up? Like how does wordpress read through the files. And how does it read the header’s contents?
Thanks in advance ??
- The topic ‘How does the plugin detection and activation code work?’ is closed to new replies.