Tips on Customizing Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin

How to Hide Pretty Links Admin Menus

function plt_hide_pretty_link_menus() {
	//Hide "Pretty Links".
	remove_menu_page('edit.php?post_type=pretty-link');
	//Hide "Pretty Links → Pretty Links".
	remove_submenu_page('edit.php?post_type=pretty-link', 'edit.php?post_type=pretty-link');
	//Hide "Pretty Links → Add New".
	remove_submenu_page('edit.php?post_type=pretty-link', 'post-new.php?post_type=pretty-link');
	//Hide "Pretty Links → Categories [Pro]".
	remove_submenu_page('edit.php?post_type=pretty-link', 'https://prettylinks.com/pl/main-menu/upgrade?categories');
	//Hide "Pretty Links → Tags [Pro]".
	remove_submenu_page('edit.php?post_type=pretty-link', 'https://prettylinks.com/pl/main-menu/upgrade?tags');
	//Hide "Pretty Links → Clicks".
	remove_submenu_page('edit.php?post_type=pretty-link', 'pretty-link-clicks');
	//Hide "Pretty Links → Reports [Pro]".
	remove_submenu_page('edit.php?post_type=pretty-link', 'https://prettylinks.com/pl/main-menu/upgrade?reports');
	//Hide "Pretty Links → Tools".
	remove_submenu_page('edit.php?post_type=pretty-link', 'pretty-link-tools');
	//Hide "Pretty Links → Options".
	remove_submenu_page('edit.php?post_type=pretty-link', 'pretty-link-options');
	//Hide "Pretty Links → Import / Export [Pro]".
	remove_submenu_page('edit.php?post_type=pretty-link', 'https://prettylinks.com/pl/main-menu/upgrade?import-export');
	//Hide "Pretty Links → Upgrade".
	remove_submenu_page('edit.php?post_type=pretty-link', 'pretty-link-updates');
}

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

Where do I put this code?

How to Hide the "Pretty Link Quick Add" Dashboard Widget

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

	//Remove the "Pretty Link Quick Add" widget.
	remove_meta_box('prli_dashboard_widget', 'dashboard', 'normal');
}

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