I got tired working on plugins and writing the same code snippets all over again, looking in the same old tutorial sites or my favorite WP 3 Plugin Dev book. So I released a startup script for plugins – http://wordpress.org/extend/plugins/dx-plugin-base/ .
It contains most of the important snippets required for every plugin – registration of custom post types or taxonomies, registering activation and deactivation hooks, admin pages, metaboxes. I’m going to add widget/shortcode registration with some samples. This would make it easier to use it as a new plugin startup script and save some time about it.
I also brainstorm on the idea of making it hookable with parameters so all functions are dynamic and the script could be extended directly with inheritance or composition. Still I need to think more generally whether it would be practical and doable for all functions.
5 thoughts on “Plugin Base Skeleton”
This is a great way to build a plugin without having to research all the basics. Thanks!
Thanks, I’ve planned to update it, I just need a couple of hours to add a few more features. 🙂
Thanks for this ! Il will use it with my students in WordPress class !
Glad you like it – let me know how it goes 🙂