Hi,
How to make activate widgets (custom theme widgets) when user activates a theme ? I have couple of theme custom widgets and theme custom sidebars. I just would like to my sidebars be automatically populated with my widgets.
Tried to find the solution all over the internet ... no luck.
Tried with:
$preset_widgets = array (
'my_sidebar-1' => array( 'mywidget-1', 'pages-1', 'categories-1', 'archives-1' )
);
update_option( 'sidebars_widgets', apply_filters('preset_widgets',$preset_widgets ));
...no luck ....
Please, help ...