[wp-hackers] Need WP/PHP guru eyeballs/feedback on my WP_Widget wrapper class
J.D. Grimes
jdg at codesymphony.co
Wed Jun 26 00:33:26 UTC 2013
Hey Micky, I was thinking about this and I think I've found a good solution for you. Just extend the Foo_Widget class with child classes like this:
class Foo_Widget_2 extends Foo_Widget {
function __construct() {
parent::__construct(
array(
'id_base' => 'foo_test_widget',
'name' => 'Foo Test Widget'
)
);
}
}
I've tested this and it works fine as far as I can tell.
J.D. Grimes
On Jun 25, 2013, at 6:40 PM, Micky Hulse <mickyhulse.lists at gmail.com> wrote:
> On Tue, Jun 25, 2013 at 3:34 PM, Micky Hulse <mickyhulse.lists at gmail.com> wrote:
>> Thanks for pro/guru help Dobri and JD, I really appreciate it!!!
>
> Ooops, I want to also thank Drew as well! :)
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list