[wp-hackers] Anything like a Plugin Framework?

Raj list at expost.org
Wed Sep 15 14:56:32 UTC 2010

No, not code examples. I am looking for a framework off which I can make
plugins and avoid wasting time on defining the same thing over and over

We should probably create something like 'cake bake' in CakePHP. It could be

Name of your plugin: Members Only
Provide the machine readable name [members_only] : mo

Choose from the below options:

1.  Generate init function
2.  Define data
	1. Options
	2. Database tables
	3. Post Meta

Create CRUD 
1. Custom content type
2. Admin page using options
3. Admin screen using database tables
5. Custom content type loop
6. Skip

1. Generate meta-box
2. Generate dashboard panel
3. Generate widget
4. Generate cron-job

5. Generate installer
6. Generate deactivation routine

... and so on.. of the top of my head. 

It would probably be less annoying to if the generator was a a web
application though. 

-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Nicolas
Sent: Wednesday, September 15, 2010 2:32 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] Anything like a Plugin Framework?

On Wed, Sep 15, 2010 at 08:59:57AM +0530, Raj wrote:
> Has anything been created like a plug-in framework? You know like:

It sounds to me like you want code examples, not really a framework.
I've read several plugins by wp developers and suggest you read

1. http://wordpress.org/extend/plugins/shadowbox-js/
Clean overall code structure and very well documented.

2. http://wordpress.org/extend/plugins/scb-framework/
Good code and documentation, plus it's a plugin framework.

> 2.       Pre-defined init function

This is really too plugin-specific.

> 5.       Pre-defined sample content-types (I know I am pushing it J)
> 6.       Pre-defined sample post meta-boxes

I don't think there's really need for that, there are excellent tutorials,
just google them. Not sure about the codex.

> 7.       Pre-defined sample widgets

Hm, is something missing on http://codex.wordpress.org/Widgets_API ?


p.s. It's a little sad how badly (not at all) documented many plugins are,
yes core devs, I'm looking at yours :-/

Nicolas Kuttler
wp at nkuttler.de

http://www.nicolaskuttler.de (deutsch)
wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list