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);

Where do I put this code?