Snippets: Remove All Customizer Google Font Options

Important: You can now register your own fonts right via the WP admin via the exclusive Total theme Font Manager. If you have any custom fonts registered in the Font Manager it will automatically remove all Google options from the Customizer and builder elements so only your custom defined fonts will display.

function myprefix_remove_customizer_google_fonts( $array ) {
	if ( is_customize_preview() ) {
		$array = array();
	return $array;
add_filter( 'wpex_google_fonts_array', 'myprefix_remove_customizer_google_fonts' );
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)