Tips on Customizing Post Views Counter

How to Hide the "Post Views Counter" Admin Menu

function plt_hide_post_views_counter_menus() {
	//Hide the "Settings → Post Views Counter" menu.
	remove_submenu_page('options-general.php', 'post-views-counter');
}

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

Where do I put this code?

How to Hide the "Post Views" Meta Box

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

	//Hide the "Post Views" meta box.
	remove_meta_box('post_views_meta_box', $screen->id, '');
}

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

How to Hide the "Post Views" Dashboard Widget

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

	//Remove the "Post Views" widget.
	remove_meta_box('pvc_dashboard', 'dashboard', 'normal');
}

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