lib/experimental/content-types
class-wp-rest-user-post-types-controller-gutenberg.php
25.0 KB
3 months ago
class-wp-rest-user-taxonomies-controller-gutenberg.php
20.1 KB
3 months ago
index.php
16.1 KB
3 months ago
load.php
654 B
3 months ago
post-types.php
10.8 KB
3 months ago
load.php in Gutenberg 23.2.0, at lib/experimental/content-types/load.php
| 1 | <?php |
| 2 | /** |
| 3 | * Bootstraps the Content Types page in wp-admin under Settings. |
| 4 | * |
| 5 | * @package gutenberg |
| 6 | */ |
| 7 | |
| 8 | add_action( 'admin_menu', '_gutenberg_content_types_add_settings_menu_items', 11 ); |
| 9 | |
| 10 | /** |
| 11 | * Registers the "Content Types" submenu item under Settings. |
| 12 | * |
| 13 | * @access private |
| 14 | */ |
| 15 | function _gutenberg_content_types_add_settings_menu_items() { |
| 16 | if ( function_exists( 'gutenberg_content_types_wp_admin_render_page' ) ) { |
| 17 | add_submenu_page( |
| 18 | 'options-general.php', |
| 19 | __( 'Content Types', 'gutenberg' ), |
| 20 | __( 'Content Types', 'gutenberg' ), |
| 21 | 'manage_options', |
| 22 | 'content-types-wp-admin', |
| 23 | 'gutenberg_content_types_wp_admin_render_page' |
| 24 | ); |
| 25 | } |
| 26 | } |
| 27 |