I wanted to get rid of all Google Fonts, including in the Customizer. I used the following php code from GP Knowledgebase in my PG Child PHP and I got the following mess, please see screenshot.
Here are the two codes I used:
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'generate-fonts' );
} );
add_action( 'admin_init', function() {
add_filter( 'generate_google_fonts_array', '__return_empty_array' );
} );
Please see attached screenshot of result.
I’m going to delete the code now. Hope that’s okay.
Thank you for your time and help.
Ken