Tips on Customizing Scripts n Styles

How to Hide the "Scripts n Styles" Admin Menu

function plt_hide_scripts_n_styles_menus() {
	//Hide the "Tools → Scripts n Styles" menu.
	remove_submenu_page('tools.php', 'sns');
}

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

Where do I put this code?

How to Hide the "Scripts n Styles" Meta Box

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

	//Hide the "Scripts n Styles" meta box.
	remove_meta_box('SnS_meta_box', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_scripts_n_styles_metaboxes', 20);