Skip to main content

wpb_download_all_google_fonts

Filters whether to download all Google Fonts for local hosting instead of only the fonts used on the site. By default, only fonts referenced in the content are downloaded.

Parameters

ParameterTypeDescription
$download_allboolWhether to download all Google Fonts. Default false.

Usage

<?php
add_filter( 'wpb_download_all_google_fonts', '__return_true' );

Source

File: include/autoload/classes/class-local-fonts.php