Skip to main content

wpb_disable_local_fonts

Filters whether to disable the local Google Fonts feature. When this filter returns true, Google Fonts will not be served locally even if the option is enabled in settings.

Parameters

ParameterTypeDescription
$disableboolWhether to disable local fonts. Default false.

Usage

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

Source

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