diff --git a/affinity/functions.php b/affinity/functions.php index 3ab3fd1b7..9576064b8 100644 --- a/affinity/functions.php +++ b/affinity/functions.php @@ -248,6 +248,13 @@ function affinity_fonts_url() { $font_families[] = 'Lora:400,400italic,700,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/alves/functions.php b/alves/functions.php index b8de9819d..be44082b3 100755 --- a/alves/functions.php +++ b/alves/functions.php @@ -186,6 +186,13 @@ function alves_fonts_url() { $font_families[] = 'Karla:400,700,400italic,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/apostrophe-2/functions.php b/apostrophe-2/functions.php index 2e6593ab5..13a7256b5 100644 --- a/apostrophe-2/functions.php +++ b/apostrophe-2/functions.php @@ -246,6 +246,13 @@ function apostrophe_2_fonts_url() { $font_families[] = 'Open Sans:300,300italic,400,400italic,600,600italic,700,700italic,800,800italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext,cyrillic' ), diff --git a/balasana/functions.php b/balasana/functions.php index 899d7357e..3deeec9c6 100755 --- a/balasana/functions.php +++ b/balasana/functions.php @@ -157,6 +157,13 @@ function balasana_fonts_url() { $font_families[] = 'Roboto:400,400i,700,700i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/barnsbury/functions.php b/barnsbury/functions.php index b1a09511c..f16e5d147 100755 --- a/barnsbury/functions.php +++ b/barnsbury/functions.php @@ -140,6 +140,13 @@ function barnsbury_fonts_url() { $font_families[] = 'Rubik:400,700,400italic,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/brompton/functions.php b/brompton/functions.php index bbb5ba463..a49311a2d 100755 --- a/brompton/functions.php +++ b/brompton/functions.php @@ -161,6 +161,13 @@ function brompton_fonts_url() { $font_families[] = 'Nunito Sans:400,400i,700,700i,900,900i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/button-2/functions.php b/button-2/functions.php index a80f4afc0..047fa813e 100644 --- a/button-2/functions.php +++ b/button-2/functions.php @@ -232,6 +232,13 @@ function button_2_fonts_url() { $font_families[] = 'Lora:400italic,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/calm-business/functions.php b/calm-business/functions.php index 5565fb5ea..52c97d1d5 100644 --- a/calm-business/functions.php +++ b/calm-business/functions.php @@ -84,6 +84,13 @@ function calm_business_fonts_url() { $font_families[] = 'Poppins:400,400i,600,600i,700,700i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/coutoire/functions.php b/coutoire/functions.php index 9b2642aa1..1ca6c6f6b 100755 --- a/coutoire/functions.php +++ b/coutoire/functions.php @@ -145,6 +145,13 @@ function coutoire_fonts_url() { $font_families[] = 'EB Garamond:400,400i,600'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/dalston/functions.php b/dalston/functions.php index 6d5f3c420..1dbc43d3f 100755 --- a/dalston/functions.php +++ b/dalston/functions.php @@ -157,6 +157,13 @@ function dalston_fonts_url() { $font_families[] = 'Crimson Text:400,600,700,400italic,600italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/dara/functions.php b/dara/functions.php index 680217500..e3b82882b 100644 --- a/dara/functions.php +++ b/dara/functions.php @@ -220,6 +220,14 @@ function dara_fonts_url() { if ( 'off' !== $yrsa ) { $font_families[] = 'Yrsa:300,400,700'; } + + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/dyad-2/functions.php b/dyad-2/functions.php index b0571b476..037259aee 100644 --- a/dyad-2/functions.php +++ b/dyad-2/functions.php @@ -287,6 +287,13 @@ function dyad_2_fonts_url() { $font_families[] = 'Noto Serif:400,400italic,700,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/elegant-business/functions.php b/elegant-business/functions.php index 6263f26d6..d10307cc5 100644 --- a/elegant-business/functions.php +++ b/elegant-business/functions.php @@ -115,6 +115,13 @@ function elegant_business_fonts_url() { $font_families[] = 'Source Serif Pro:400,700,400italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/exford/functions.php b/exford/functions.php index 99724beab..617fac024 100755 --- a/exford/functions.php +++ b/exford/functions.php @@ -148,6 +148,13 @@ function exford_fonts_url() { $font_families[] = 'Source Sans Pro:400,700,400i,700i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/friendly-business/functions.php b/friendly-business/functions.php index c907410b6..fd0bbdcb3 100644 --- a/friendly-business/functions.php +++ b/friendly-business/functions.php @@ -85,6 +85,13 @@ function friendly_business_fonts_url() { $font_families[] = 'Rubik:400,700,400italic,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/hever/functions.php b/hever/functions.php index 66e03bd8a..db3856cd6 100644 --- a/hever/functions.php +++ b/hever/functions.php @@ -111,6 +111,13 @@ function hever_fonts_url() { $font_families[] = 'PT Sans:400,400i,700,700i'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/ibis/functions.php b/ibis/functions.php index dd15dd8dd..dbcb4aa3c 100755 --- a/ibis/functions.php +++ b/ibis/functions.php @@ -47,6 +47,13 @@ function ibis_fonts_url() { $font_families[] = 'Lora:400,400i,600,600i,700,700i'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/intergalactic-2/functions.php b/intergalactic-2/functions.php index ac8c2654f..540581ae7 100644 --- a/intergalactic-2/functions.php +++ b/intergalactic-2/functions.php @@ -255,6 +255,13 @@ function intergalactic_2_fonts_url() { $font_families = array(); $font_families[] = 'Lato:300,400,700,300italic,400italic,700italic&subset=latin,latin-ext'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/karuna/functions.php b/karuna/functions.php index 5da3bb0e5..33a91bc0b 100644 --- a/karuna/functions.php +++ b/karuna/functions.php @@ -299,6 +299,13 @@ function karuna_fonts_url() { $font_families = array(); $font_families[] = 'Karla:400,400italic,700,700italic'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/leven/functions.php b/leven/functions.php index 30fb64608..7bee2f1a4 100755 --- a/leven/functions.php +++ b/leven/functions.php @@ -142,6 +142,13 @@ function leven_fonts_url() { $font_families[] = 'Crimson Text:400,400i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/libre-2/functions.php b/libre-2/functions.php index 01b770cfa..9f9497995 100644 --- a/libre-2/functions.php +++ b/libre-2/functions.php @@ -207,6 +207,13 @@ function libre_2_fonts_url() { $font_families = array(); $font_families[] = 'Libre Baskerville:400,400italic,700'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/libretto/functions.php b/libretto/functions.php index def4ac5f4..aeb40e8d5 100644 --- a/libretto/functions.php +++ b/libretto/functions.php @@ -259,6 +259,13 @@ function libretto_fonts_url() { $font_families[] = 'Droid Sans Mono:400'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/lodestar/functions.php b/lodestar/functions.php index 41f20ad00..57e6fcfa1 100644 --- a/lodestar/functions.php +++ b/lodestar/functions.php @@ -172,6 +172,13 @@ function lodestar_fonts_url() { $font_families[] = 'Karla:400,400italic,700,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/mayland/functions.php b/mayland/functions.php index 6bb8b0fe7..55f1738c1 100755 --- a/mayland/functions.php +++ b/mayland/functions.php @@ -138,6 +138,13 @@ function mayland_fonts_url() { $font_families[] = 'Poppins:400,400i,600,600i'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/maywood/functions.php b/maywood/functions.php index 24b5f6fec..804c92837 100755 --- a/maywood/functions.php +++ b/maywood/functions.php @@ -137,6 +137,13 @@ function maywood_fonts_url() { $font_families[] = 'IBM Plex Sans:300,300i,500,500i,700'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/modern-business/functions.php b/modern-business/functions.php index bc10b6b8f..490a09c32 100644 --- a/modern-business/functions.php +++ b/modern-business/functions.php @@ -79,6 +79,14 @@ function modern_business_fonts_url() { if ( 'off' !== $font ) { $font_families[] = 'IBM Plex Sans:300,300i,500,700'; } + + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/morden/functions.php b/morden/functions.php index 98f81a55a..2fa40c411 100755 --- a/morden/functions.php +++ b/morden/functions.php @@ -110,6 +110,13 @@ function morden_fonts_url() { $font_families[] = 'Noto Sans:400,400i,700,700i'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/penscratch-2/functions.php b/penscratch-2/functions.php index cb1c7b153..ab9aeca7d 100644 --- a/penscratch-2/functions.php +++ b/penscratch-2/functions.php @@ -265,6 +265,13 @@ function penscratch_2_fonts_url() { $font_families = array(); $font_families[] = 'Roboto Slab:300,400,700'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/pique/functions.php b/pique/functions.php index 0e79fada3..20a4b6133 100644 --- a/pique/functions.php +++ b/pique/functions.php @@ -259,6 +259,13 @@ function pique_fonts_url() { $font_families[] = 'Karla:400,700,400italic,700italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/professional-business/functions.php b/professional-business/functions.php index 4cf5935cf..bb81713f1 100644 --- a/professional-business/functions.php +++ b/professional-business/functions.php @@ -84,6 +84,13 @@ function professional_business_fonts_url() { $font_families[] = 'Crimson Text:400,600,700,400italic,600italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/rebalance/functions.php b/rebalance/functions.php index 3393731aa..9d4fb1db5 100644 --- a/rebalance/functions.php +++ b/rebalance/functions.php @@ -226,6 +226,13 @@ function rebalance_fonts_url() { $font_families[] = 'Libre Baskerville:700,900,400italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/rivington/functions.php b/rivington/functions.php index adaacfa03..ea3da5914 100755 --- a/rivington/functions.php +++ b/rivington/functions.php @@ -146,6 +146,13 @@ function rivington_fonts_url() { $font_families[] = 'Poppins:400,400i,600,600i'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/rockfield/functions.php b/rockfield/functions.php index 39b237c76..a775e6ecc 100755 --- a/rockfield/functions.php +++ b/rockfield/functions.php @@ -110,6 +110,13 @@ function rockfield_fonts_url() { $font_families[] = 'Lora:400,400i,700,700i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/scratchpad/functions.php b/scratchpad/functions.php index 8ef967b70..3d3d6eaab 100644 --- a/scratchpad/functions.php +++ b/scratchpad/functions.php @@ -303,6 +303,13 @@ function scratchpad_fonts_url() { $font_families[] = 'Kalam:400,700'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/seedlet/functions.php b/seedlet/functions.php index 5536bd0fa..a639d3b22 100755 --- a/seedlet/functions.php +++ b/seedlet/functions.php @@ -305,6 +305,13 @@ function seedlet_fonts_url() { $font_families[] = 'Playfair Display:ital,wght@0,400;0,700;1,400'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/shawburn/functions.php b/shawburn/functions.php index 3f044b8aa..0ee41686f 100755 --- a/shawburn/functions.php +++ b/shawburn/functions.php @@ -111,6 +111,13 @@ function shawburn_fonts_url() { $font_families[] = 'PT Serif:400,400i,700,700i'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/sketch/functions.php b/sketch/functions.php index 231a7b134..13d051503 100644 --- a/sketch/functions.php +++ b/sketch/functions.php @@ -241,6 +241,13 @@ function sketch_fonts_url() { $font_families = array(); $font_families[] = 'Lato:300,400,700,300italic,400italic,700italic'; + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/sophisticated-business/functions.php b/sophisticated-business/functions.php index fd20906d1..6c9cd22a4 100644 --- a/sophisticated-business/functions.php +++ b/sophisticated-business/functions.php @@ -87,6 +87,13 @@ function sophisticated_business_fonts_url() { $font_families[] = 'Poppins:400,600,700,400italic,600italic'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/stow/functions.php b/stow/functions.php index f08a68472..4d587b22c 100755 --- a/stow/functions.php +++ b/stow/functions.php @@ -121,6 +121,14 @@ function stow_fonts_url() { if ( 'off' !== $oswald ) { $font_families[] = 'Oswald:300,400'; } + + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/stratford/functions.php b/stratford/functions.php index ce7cb5ed3..50d6cd90f 100755 --- a/stratford/functions.php +++ b/stratford/functions.php @@ -123,6 +123,13 @@ function stratford_fonts_url() { $font_families[] = 'Inconsolata:400,700'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), diff --git a/toujours/functions.php b/toujours/functions.php index 86929bade..7745830ee 100644 --- a/toujours/functions.php +++ b/toujours/functions.php @@ -312,6 +312,13 @@ function toujours_fonts_url() { $font_families[] = 'Merriweather:700italic,400,400italic,700,600'; } + /** + * A filter to enable child themes to add/change/omit font families. + * + * @param array $font_families An array of font families to be imploded for the Google Font API + */ + $font_families = apply_filters( 'included_google_font_families', $font_families ); + $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ),