Tips on Customizing Google Fonts Typography

How to Hide the "Google Fonts" Admin Menu

function plt_hide_olympus_google_fonts_menus() {
	//Hide the "Appearance → Google Fonts" menu.
	remove_submenu_page('themes.php', 'olympus-google-fonts');
}

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

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