lib
block-supports
4 months ago
compat
3 months ago
experimental
3 months ago
media
3 months ago
README.md
10.0 KB
7 months ago
block-editor-settings.php
5.4 KB
7 months ago
block-template-utils.php
3.5 KB
1 year ago
blocks.php
11.8 KB
7 months ago
class-wp-duotone-gutenberg.php
37.6 KB
5 months ago
class-wp-icons-registry-gutenberg.php
7.1 KB
4 months ago
class-wp-rest-edit-site-export-controller-gutenberg.php
1.2 KB
2 years ago
class-wp-rest-global-styles-controller-gutenberg.php
24.5 KB
7 months ago
class-wp-rest-icons-controller-gutenberg.php
481 B
4 months ago
class-wp-theme-json-data-gutenberg.php
1.7 KB
2 years ago
class-wp-theme-json-gutenberg.php
196.1 KB
3 months ago
class-wp-theme-json-resolver-gutenberg.php
34.7 KB
6 months ago
class-wp-theme-json-schema-gutenberg.php
7.4 KB
7 months ago
client-assets.php
16.4 KB
4 months ago
demo.php
1.6 KB
1 year ago
global-styles-and-settings.php
14.2 KB
7 months ago
init.php
945 B
4 months ago
interactivity-api.php
1.2 KB
7 months ago
load.php
10.9 KB
3 months ago
mathml-kses.php
6.3 KB
10 months ago
overlay-patterns.php
12.2 KB
6 months ago
remove-core-enqueue-scripts.php
779 B
5 months ago
rest-api.php
1.6 KB
4 months ago
script-loader.php
5.9 KB
5 months ago
theme-i18n.json
1.8 KB
7 months ago
theme.json
9.2 KB
5 months ago
upgrade.php
2.6 KB
5 months ago
| 1 | <?php |
| 2 | /** |
| 3 | * Init hooks. |
| 4 | * |
| 5 | * @package gutenberg |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Gutenberg's Menu. |
| 10 | * |
| 11 | * Adds a new wp-admin menu page for the Gutenberg editor. |
| 12 | * |
| 13 | * @since 0.1.0 |
| 14 | */ |
| 15 | function gutenberg_menu() { |
| 16 | add_menu_page( |
| 17 | __( 'Gutenberg', 'gutenberg' ), |
| 18 | __( 'Gutenberg', 'gutenberg' ), |
| 19 | 'edit_posts', |
| 20 | 'gutenberg', |
| 21 | '', |
| 22 | 'dashicons-edit' |
| 23 | ); |
| 24 | |
| 25 | add_submenu_page( |
| 26 | 'gutenberg', |
| 27 | __( 'Demo', 'gutenberg' ), |
| 28 | __( 'Demo', 'gutenberg' ), |
| 29 | 'edit_posts', |
| 30 | 'gutenberg' |
| 31 | ); |
| 32 | |
| 33 | if ( current_user_can( 'edit_posts' ) ) { |
| 34 | add_submenu_page( |
| 35 | 'gutenberg', |
| 36 | __( 'Support', 'gutenberg' ), |
| 37 | __( 'Support', 'gutenberg' ), |
| 38 | 'edit_posts', |
| 39 | __( 'https://wordpress.org/support/plugin/gutenberg/', 'gutenberg' ) |
| 40 | ); |
| 41 | add_submenu_page( |
| 42 | 'gutenberg', |
| 43 | __( 'Documentation', 'gutenberg' ), |
| 44 | __( 'Documentation', 'gutenberg' ), |
| 45 | 'edit_posts', |
| 46 | 'https://developer.wordpress.org/block-editor/' |
| 47 | ); |
| 48 | } |
| 49 | } |
| 50 | add_action( 'admin_menu', 'gutenberg_menu', 9 ); |
| 51 |