Tips on Customizing Socius Marketing Page Taxonomy

How to Hide Socius Marketing Page Taxonomy Admin Menus

function plt_hide_socius_marketing_page_taxonomy_menus() {
	//Hide the "Settings → Custom Taxonomy" menu.
	remove_submenu_page('options-general.php', 'smct-options');

	//Hide the "Pages → Custom Categories" menu.
	remove_submenu_page('edit.php?post_type=page', 'edit-tags.php?taxonomy=smct_cats&post_type=page');
	//Hide the "Pages → Areas Served" menu.
	remove_submenu_page('edit.php?post_type=page', 'edit-tags.php?taxonomy=smct_areas&post_type=page');
}

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

Where do I put this code?

How to Hide Socius Marketing Page Taxonomy Meta Boxes

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

	//Hide the "Custom Categories" meta box.
	remove_meta_box('smct_catsdiv', $screen->id, 'side');
	//Hide the "Areas Served" meta box.
	remove_meta_box('smct_areasdiv', $screen->id, 'side');
}

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

How to Hide the "Custom Taxonomies" Dashboard Widget

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

	//Remove the "Custom Taxonomies" widget.
	remove_meta_box('smct_custom_widget', 'dashboard', 'normal');
}

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