[Resolved] PHP Notices

Home Forums Support [Resolved] PHP Notices

Home Forums Support PHP Notices

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #1097479
    Tom
    Lead Developer
    Lead Developer

    Any other filters? Specifically dealing with Google fonts?

    #1097648
    Kim

    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' );
    }
    #1097959
    Tom
    Lead Developer
    Lead Developer

    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' );
    }
    #1100526
    Kim

    Awesome! Many thanks ๐Ÿ™‚

    #1101230
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.