-
Home
-
Fonts Plugin | Use Google Fonts, Adobe Fonts or Upload Fonts
- Tips
How to Hide Fonts Plugin | Use Google Fonts, Adobe Fonts or Upload Fonts Admin Menus
function plt_hide_olympus_google_fonts_menus() {
//Hide "Fonts Plugin".
remove_menu_page('fonts-plugin');
//Hide "Fonts Plugin → Fonts Plugin".
remove_submenu_page('fonts-plugin', 'fonts-plugin');
//Hide "Fonts Plugin → Customize Fonts".
remove_submenu_page('fonts-plugin', 'http://127.0.0.1/wp-admin/customize.php?autofocus%5Bpanel%5D=ogf_google_fonts');
//Hide "Fonts Plugin → Documentation".
remove_submenu_page('fonts-plugin', 'https://docs.fontsplugin.com');
//Hide "Fonts Plugin → Adobe Fonts".
remove_submenu_page('fonts-plugin', 'fonts-plugin-typekit');
//Hide "Fonts Plugin → Upload Fonts".
remove_submenu_page('fonts-plugin', 'edit-tags.php?taxonomy=ogf_custom_fonts');
}
add_action('admin_menu', 'plt_hide_olympus_google_fonts_menus', 102);
Where do I put this code?
How to Hide the "Typography News from Fonts Plugin" Dashboard Widget
function plt_hide_olympus_google_fonts_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Typography News from Fonts Plugin" widget.
remove_meta_box('ogf-rss-feed', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_olympus_google_fonts_dashboard_widgets', 20);