Help with little code for WPMU

trecords

Junior Member
Joined
Oct 5, 2008
Messages
101
Reaction score
90
Hi,
I want to use simple "text" widget as default widget for newly created blogs. I use:
PHP:
function default_widgets($blog_id) {
add_option( 'widget_categories',
array( 'title' => 'My Categories' ));
update_blog_option($blog_id, "sidebars_widgets",
array("sidebar-1" => array("text"),));
}
add_action('wpmu_new_blog', 'default_widgets');
This code activates the text widget but it is impossible to add text in it. Please, can someone help me to make the default text widget with text in it.
There are $text and $title variables, how can i use them?
 
Back
Top