Snippets: Adding New Google Font Options To The TinyMCE Editor

 * Example function for adding new Google Fonts to the TinyMCE
 * IMPORTANT: The theme checks to make sure fonts are a part of the wpex_google_fonts_array()
 * before loading the Google script in the backend which allows the font to be previewed live
 * if you are adding a font not in that array make sure to add it via the filter.
function myprefix_wpex_mce_fonts( $fonts ) {
	$fonts[] = 'Roboto Sans'; // Add Roboto Sans
	return $fonts;
add_filter( 'wpex_mce_fonts', 'myprefix_wpex_mce_fonts' );
All PHP snippets should be added via a child theme's functions.php file.