У меня есть ребенок тема, и я пытаюсь фильтровать следующее:Фильтрация функции в WP
// add the function to the init hook
add_action('init', 'options_typography_get_google_fonts');
// add a font to the $google_fonts variable
function options_typography_get_google_fonts() {
// Google Font Defaults
global $google_faces;
$google_faces = array(
'Great Vibes, cursive' => '*Great Vibes'
);
return $google_faces;
}
Каков наилучший способ фильтрации это, так что я могу добавить больше Google шрифтов?