[wp-hackers] Need WP/PHP guru eyeballs/feedback on my WP_Widget wrapper class

Micky Hulse mickyhulse.lists at gmail.com
Sun Jun 30 07:05:01 UTC 2013


On Sat, Jun 29, 2013 at 11:33 PM, Nikola Nikolov <nikolov.tmw at gmail.com> wrote:
> By the way you can also do the registration of all widgets in one function.
> Store all of your widget classes in a static variable in your "Foo_Widget"
> class - like "self::$registered_widgets[] = get_class( $this );"

Oooh, that's a good idea! I'm looking forward to playing with this technique.

After I've experimented, I may be back with some questions. ;)

Thank you Nikola! I really appreciate the help!

Cheers,
Micky


More information about the wp-hackers mailing list