Tips on Customizing Top 10 – WordPress Popular posts by WebberZone

How to Hide Top 10 Admin Menus

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

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

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