Hi,
I want to use simple "text" widget as default widget for newly created blogs. I use:
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?
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');
There are $text and $title variables, how can i use them?