Remove all Google Fonts from the typography settings panel
/**
* Remove all Google font options from the Customizer
*/
function remove_customizer_google_fonts( $fonts ) {
if ( is_customize_preview() ) {
$fonts = '';
}
return $fonts;
}
add_filter( 'ocean_google_fonts_array', 'remove_customizer_google_fonts' );
All PHP snippets should be added via a child theme's functions.php file.