Quote:
Originally Posted by Sly
I have that.
And how do I share the same widget with the same settings throughout those 200 blogs?
|
Put code like this in functions.php for each template that you're using:
class My_Widget extends WP_Widget {
function My_Widget() {
parent::WP_Widget(false, 'Test Widget');
}
function form($instance) {
// outputs the options form on admin
}
function update($new_instance, $old_instance) {
// processes widget options
return $new_instance;
}
function widget($args, $instance) {
// outputs widget content
}
}
register_widget(My_Widget');
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.

I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..