From 09e8f4819fc63a652f31323cad4f6845dcfabe39 Mon Sep 17 00:00:00 2001 From: jrangel Date: Sun, 10 Nov 2024 05:39:37 +0000 Subject: [PATCH] Initial --- .../gutenberg-on-admin-page/admin-page.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Gutenberg/gutenberg-on-admin-page/admin-page.php diff --git a/Gutenberg/gutenberg-on-admin-page/admin-page.php b/Gutenberg/gutenberg-on-admin-page/admin-page.php new file mode 100644 index 0000000..4d7e40e --- /dev/null +++ b/Gutenberg/gutenberg-on-admin-page/admin-page.php @@ -0,0 +1,37 @@ +function my_custom_admin_page() { + add_menu_page( + 'Custom Page with Gutenberg Editor', + 'Custom Page', + 'manage_options', + 'my-custom-page', + 'my_custom_page_callback', + 'dashicons-edit', + 20 + ); +} +add_action('admin_menu', 'my_custom_admin_page'); + +function my_custom_page_callback() { + ?> +
+ +