{ if ( isset( $content['widgets']['home-content-top-widget-area'] ) ) { $content['widgets']['front-side-top-widget-area']['b_custom_widget'] = array( 'wp_widget_vkexunit_profile', array( 'label' => 'Sample profile widget', 'facebook' => 'http://facebook.com', 'profile' => 'profile content' ), ); } return $content; } add_filter( 'get_theme_starter_content', 'myprefix_starter_content_add_widget', 10, 2 );