Remove the Google Fonts collection from the Site Editor's font library, so nobody installs fonts from Google by mistake.
add_action( 'init', function (): void {
if ( function_exists( 'wp_unregister_font_collection' ) ) {
wp_unregister_font_collection( 'google-fonts' );
}
}, 20 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
The font library lists Google Fonts to install. Installing copies the files to your site, but browsing the list loads previews from Google, and some site owners would rather not offer Google as a source at all. This snippet removes the collection while keeping uploads of your own font files.
WordPress registers Google Fonts as a font collection called google-fonts. wp_unregister_font_collection() removes it, so the “Install Fonts” tab no longer lists it. The “Upload” tab still works.
Open Appearance → Editor → Styles → Typography → Manage fonts. The Google Fonts tab should be gone.