Merge pull request #3309 from Automattic/add/seedlet/extensibility-3134
Add filter to change bundled google fonts in assorted themes.
This commit is contained in:
commit
839d682f5d
41 changed files with 290 additions and 0 deletions
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue