Tips on Customizing Top 10 – Popular posts plugin for WordPress

How to Hide Top 10 Admin Menus

function plt_hide_top_10_menus() {
	//Hide "Top 10".
	remove_menu_page('tptn_options_page');
	//Hide "Top 10 → Settings".
	remove_submenu_page('tptn_options_page', 'tptn_options_page');
	//Hide "Top 10 → Tools".
	remove_submenu_page('tptn_options_page', 'tptn_tools_page');
	//Hide "Top 10 → Popular Posts".
	remove_submenu_page('tptn_options_page', 'tptn_popular_posts');
	//Hide "Top 10 → Daily Popular Posts".
	remove_submenu_page('tptn_options_page', 'tptn_popular_posts&orderby=daily_count&order=desc');
}

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

Where do I put this code?

How to Hide the "Top 10" Meta Box

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

	//Hide the "Top 10" meta box.
	remove_meta_box('tptn_metabox', $screen->id, 'advanced');
}

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

How to Hide Top 10 Dashboard Widgets

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

	//Remove the "Popular Posts" widget.
	remove_meta_box('tptn_pop_dashboard', 'dashboard', 'normal');
	//Remove the "Daily Popular Posts" widget.
	remove_meta_box('tptn_pop_daily_dashboard', 'dashboard', 'normal');
}

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