Site logo

Archived topic

PHP Notices

19 replies · Started by Kim on December 2, 2019

Viewing posts 16–20 of 20

Any other filters? Specifically dealing with Google fonts?

Hi Tom, just went through the snipptes and found this one:

add_action( 'admin_init', 'tu_remove_google_fonts_customizer' );
function tu_remove_google_fonts_customizer() {
    add_filter( 'generate_google_fonts_array', '__return_false' );
}

That's the one, try this instead:

add_action( 'admin_init', 'tu_remove_google_fonts_customizer' );
function tu_remove_google_fonts_customizer() {
    add_filter( 'generate_google_fonts_array', '__return_empty_array' );
}

Awesome! Many thanks :-)

No problem :)

This archived topic is closed to new replies.