Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
For WordPress, prevent Airplane Mode plugin from blocking Google Fonts.
<?php
// Prevent Airplane Mode from blocking Google Fonts.
add_filter( 'airplane_mode_parse_style', function( $value, $parsed ) {
if ( 'fonts.googleapis.com' === $parsed ) {
$value = false;
}
return $value;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment