admin管理员组文章数量:1287966
The idea is to create a very basic plugin for wordpress and enhance it with internal modules and some more plugins (e-plugins) if activated. This base plugin would have all the basic code of a wordpress plugin to work, and should load the modules and then the e-plugins if activated. The concept (very simplified here) I have is, to do this with an enhancement class/interface, to register all modules and plugins that will extend the base plugin. Then this base plugin can use all the functionality that will be implemented by the modules and all activated e-plugins. The advantage of this concept is that functionality that was formerly implemented in an e-plugin could easily integrated in major releases of the base plugin in just adding this e-plugin as a an internal module.
I have 2 questions:
- I don't want to reinvent the wheel, so does anyone know an already existing concept/framework/starting point for my described concept?
- The standard approach is to do enhancement of plugins with action and filter hooks. But this has its limitations. So should a WordPress plugin always and anyway be extended with hooks?
Thank's in advance
Tom
本文标签: hooksHow to enhance a self developed plugin by its own plugin architecture
版权声明:本文标题:hooks - How to enhance a self developed plugin by its own plugin architecture 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741319185a2372104.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论