Tips on Customizing Fonts Plugin | Google Fonts Typography

How to Hide Fonts Plugin | Google Fonts Typography Admin Menus

function plt_hide_olympus_google_fonts_menus() {
	//Hide the "Fonts Plugin" menu.
	remove_menu_page('fonts-plugin');
	//Hide the "Fonts Plugin → Fonts Plugin" menu.
	remove_submenu_page('fonts-plugin', 'fonts-plugin');
	//Hide the "Fonts Plugin → Customize Fonts" menu.
	remove_submenu_page('fonts-plugin', 'http://127.0.0.1/wp-admin/customize.php?autofocus%5Bpanel%5D=ogf_google_fonts');
}

add_action('admin_menu', 'plt_hide_olympus_google_fonts_menus', 102);

Where do I put this code?

How to Hide the "Typography News" Dashboard Widget

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

	//Remove the "Typography News" widget.
	remove_meta_box('ogf-rss-feed', 'dashboard', 'normal');
}

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