# gutenberg/22.3.0/lib/experimental/fonts/load.php

Gutenberg, version 22.3.0. 29 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/22.3.0/code/lib/experimental/fonts/load.php
- Raw: https://pluginprobe.com/plugins/gutenberg/22.3.0/raw/lib/experimental/fonts/load.php
- Modified: 2025-12-17T17:29:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/22.3.0/code/lib/experimental/fonts/load.php#L10-L20`.

```php
<?php
/**
 * Bootstraps the Fonts library page in wp-admin.
 *
 * @package gutenberg
 */

add_action( 'admin_menu', 'gutenberg_register_fonts_menu_item' );

/**
 * Registers the Fonts menu item under Appearance using the gutenberg-boot-wp-admin routing infrastructure.
 */
function gutenberg_register_fonts_menu_item() {
	if ( ! wp_is_block_theme() ) {
		return;
	}

	$url = admin_url( 'admin.php?page=gutenberg-boot-wp-admin&p=' . urlencode( '/font-list' ) );

	add_submenu_page(
		'themes.php',
		__( 'Fonts', 'gutenberg' ),
		__( 'Fonts', 'gutenberg' ),
		'edit_theme_options',
		$url,
		''
	);
}

```
