ОБНОВЛЕНО: попробуйте это из документации разработчика Wordpress: https://developer.wordpress.org/reference/functions/add_editor_style/
Использование Google Fonts
Google Fonts API предоставляет один URL-адрес для файла CSS, который может включать несколько вариантов шрифта, разделенных запятыми. Запятые в URL должны быть закодированы, прежде чем строка может быть передана в add_editor_style.
/**
* Registers an editor stylesheet for the current theme.
*/
function wpdocs_theme_add_editor_styles() {
$font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=Lato:300,400,700' );
add_editor_style( $font_url );
}
add_action( 'after_setup_theme', 'wpdocs_theme_add_editor_styles' );