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.
	//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', '');

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

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