Append a new font to the string. } $link .= $font['font-family']; if ( ! empty( $font['variants'] ) ) { $link .= ':'; $i = 0; $count = count( $font['variants'] ); foreach ( $font['variants'] as $key => $variant ) { $i ++; $link .= $variant['id']; if ( $i < $count ) { $link .= ','; } } } if ( isset( $font['font-subset'] ) && ! empty( $font['font-subset'] ) && ! in_array( $font['font-subset'], $subsets, true ) ) { array_push( $subsets, $font['font-subset'] ); } } if ( ! empty( $subsets ) ) { foreach ( $subsets as $key => $value ) { $subsets[ $key ] = implode( ',', array_filter( explode( ',', $value ) ) ); } $link .= '&subset=' . implode( ',', $subsets ); } if ( 'disable' !== woodmart_get_opt( 'google_font_display' ) ) { $link .= '&display=' . woodmart_get_opt( 'google_font_display' ); } wp_enqueue_style( 'xts-google-fonts', 'https://fonts.googleapis.com/css?family=' . str_replace( '|', '%7C', $link ), array(), woodmart_get_theme_info( 'Version' ) ); } } Google_Fonts::get_instance();