PluginProbe
Gutenberg / 22.3.0
Gutenberg v22.3.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / lib / experimental / fonts / load.php

load.php in Gutenberg 22.3.0, at lib/experimental/fonts/load.php

29 lines 600 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Bootstraps the Fonts library page in wp-admin.
4 *
5 * @package gutenberg
6 */
7
8 add_action( 'admin_menu', 'gutenberg_register_fonts_menu_item' );
9
10 /**
11 * Registers the Fonts menu item under Appearance using the gutenberg-boot-wp-admin routing infrastructure.
12 */
13 function gutenberg_register_fonts_menu_item() {
14 if ( ! wp_is_block_theme() ) {
15 return;
16 }
17
18 $url = admin_url( 'admin.php?page=gutenberg-boot-wp-admin&p=' . urlencode( '/font-list' ) );
19
20 add_submenu_page(
21 'themes.php',
22 __( 'Fonts', 'gutenberg' ),
23 __( 'Fonts', 'gutenberg' ),
24 'edit_theme_options',
25 $url,
26 ''
27 );
28 }
29