Tips on Customizing Social Slider Widget

How to Hide Social Slider Widget Admin Menus

function plt_hide_instagram_slider_widget_menus() {
	//Hide "Social Slider Widgets".
	remove_menu_page('widgets-wisw');
	//Hide "Social Slider Widgets → Widgets".
	remove_submenu_page('widgets-wisw', 'widgets-wisw');
	//Hide "Social Slider Widgets → Settings".
	remove_submenu_page('widgets-wisw', 'settings-wisw');
	//Hide "Social Slider Widgets → License".
	remove_submenu_page('widgets-wisw', 'license-wisw');
	//Hide "Social Slider Widgets → About".
	remove_submenu_page('widgets-wisw', 'about-wisw');
}

add_action('admin_menu', 'plt_hide_instagram_slider_widget_menus', 11);

Where do I put this code?

How to Hide the "Social Slider Widget News" Dashboard Widget

function plt_hide_instagram_slider_widget_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "Social Slider Widget News" widget.
	remove_meta_box('wbcr-factory-adverts-widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_instagram_slider_widget_dashboard_widgets', 20);