[wp-hackers] Multiwidget Support
scribu at gmail.com
Thu Feb 5 22:13:26 GMT 2009
On Thu, Feb 5, 2009 at 11:59 PM, Austin Matzko <if.website at gmail.com> wrote:
> On Thu, Feb 5, 2009 at 3:55 PM, Chris Jean <gaarai at gaarai.com> wrote:
> > I've suffered through development of widgets that support multiple
> > many times. Recently, I began wondering some things:
> > 1. Why is the method for producing multiwidgets so obscure and
> > complicated?
> > 2. Why is there any need to support a single-instance widget?
> > 3. Why aren't all the core widgets multiwidgets?
> > 4. Couldn't the method of registering and controlling widgets be
> > improved to automatically make all widgets multiwidgets?
> > Of course, for that last option to work, the storage mechanism would have
> > be standardized. That's not a bad idea though.
> I think this is a step in the right direction:
+1 for core.
I was also thinking of making a class for multiple widgets. Thanks for
saving me the trouble.
Another thing, why do you have to register a widget after 'plugins_loaded' ?
By the way they are implemented, they still feel like part of a plugin, yet
you can't disable them from the plugins menu.
More information about the wp-hackers