{"id":1786,"date":"2023-01-26T17:00:00","date_gmt":"2023-01-26T08:00:00","guid":{"rendered":"https:\/\/wakatchi.dev\/adding-your-own-management-menu-to-wordpress-%e2%91%a0-adding-a-top-menu\/"},"modified":"2025-01-15T18:29:53","modified_gmt":"2025-01-15T09:29:53","slug":"wordpress-admin-dev","status":"publish","type":"post","link":"https:\/\/wakatchi.dev\/en\/wordpress-admin-dev\/","title":{"rendered":"Adding your own management menu to WordPress \u2460 Adding a top menu"},"content":{"rendered":"<div class=\"gfmr-markdown-container\"><div class=\"gfmr-markdown-source\" style=\"display: none;\">\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Hello, I&#039;m Wakatchi ( &lt;a href=&quot;https:\/\/twitter.com\/wakatchi_tech&quot;&gt;@wakatchi_tech&lt;\/a&gt; )&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-balloon vk_balloon vk_balloon-position-right vk_balloon-type-speech vk_balloon-animation-none&quot;&gt;&lt;div class=&quot;vk_balloon_icon&quot;&gt;&lt;figure&gt;&lt;img class=&quot;vk_balloon_icon_image vk_balloon_icon_image-type-normal &quot; src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2022\/07\/computer01_boy.png&quot; alt=&quot;&quot;\/&gt;&lt;figcaption class=&quot;vk_balloon_icon_name&quot;&gt;\u8cea\u554f\u8005&lt;\/figcaption&gt;&lt;\/figure&gt;&lt;\/div&gt;&lt;div class=&quot;vk_balloon_content_outer&quot;&gt;&lt;div class=&quot;vk_balloon_content  has-background-color has-pale-cyan-blue-background-color &quot;&gt;&lt;span class=&quot;vk_balloon_content_before  has-text-color has-pale-cyan-blue-color&quot;&gt;&lt;\/span&gt;&lt;span class=&quot;vk_balloon_content_after &quot;&gt;&lt;\/span&gt;\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;Is there a way to save settings for a blog created with WordPress?&lt;\/p&gt;\n&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;When running a site developed with WordPress, you may want to save the site&#039;s unique settings or change the settings while operating the site.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span class=&quot;marker-halfYellow&quot;&gt;&lt;span data-color=&quot;#fcb900&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;&lt;strong&gt;For site-specific settings, we recommend developing your own WordPress admin menu.&lt;\/strong&gt;&lt;\/span&gt;&lt;\/span&gt; Site setting values (parameters) can be changed by modifying the source code such as function.php using a plugin editor. However, if the source code is under version control or if the site operator is not good at coding, constant changes to the source code may not be healthy.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;You can easily create an admin menu by simply calling functions provided by WordPress. Also, unlike the front-end screen that is open to site users, the management menu does not require much design, as a simple screen for site operators is sufficient.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;In this article, we will show you how to add your own admin menu to WordPress.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-border-box vk_borderBox vk_borderBox-background-transparent has-text-color has-pale-cyan-blue-color is-style-vk_borderBox-style-solid-kado-tit-tab&quot;&gt;&lt;div class=&quot;vk_borderBox_title_container has-background has-pale-cyan-blue-background-color&quot;&gt;&lt;i class=&quot;&quot;&gt;&lt;\/i&gt;&lt;h4 class=&quot;vk_borderBox_title&quot;&gt;&lt;strong&gt;&lt;strong&gt;This article is recommended for &lt;\/strong&gt;&lt;\/strong&gt;&lt;\/h4&gt;&lt;\/div&gt;&lt;div class=&quot;vk_borderBox_body&quot;&gt;\n&lt;ul class=&quot;is-style-vk-handpoint-mark wp-block-list&quot;&gt;\n&lt;li&gt;WordPress site developers who want to configure the entire site from the WordPress admin screen&lt;\/li&gt;\n\n\n\n&lt;li&gt;WordPress theme and plugin developer&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;&lt;\/div&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-table-of-contents-new vk_tableOfContents vk_tableOfContents-style-default tabs&quot;&gt;&lt;div class=&quot;tab&quot;&gt;&lt;div class=&quot;vk_tableOfContents_title&quot;&gt;\u76ee\u6b21&lt;\/div&gt;&lt;input type=&quot;checkbox&quot; id=&quot;chck1&quot;\/&gt;&lt;label class=&quot;tab-label vk_tableOfContents_openCloseBtn button_status button_status-open&quot; for=&quot;chck1&quot; id=&quot;vk-tab-label&quot;&gt;CLOSE&lt;\/label&gt;&lt;ul class=&quot;vk_tableOfContents_list tab_content-open&quot;&gt;\n\t\t\t\t&lt;li class=&quot;vk_tableOfContents_list_item vk_tableOfContents_list_item-h-2&quot;&gt;\n\t\t\t\t\t&lt;a href=&quot;#vk-htags-79b237a7-b178-4458-b0ac-11830888f763&quot; class=&quot;vk_tableOfContents_list_item_link&quot;&gt;\n\t\t\t\t\t\t&lt;span class=&quot;vk_tableOfContents_list_item_link_preNumber&quot;&gt;1. &lt;\/span&gt;\n\t\t\t\t\t\tCode the WordPress admin menu with PHP\n\t\t\t\t\t&lt;\/a&gt;\n\t\t\t\t&lt;\/li&gt;\n\t\t\t\n\t\t\t\t&lt;li class=&quot;vk_tableOfContents_list_item vk_tableOfContents_list_item-h-2&quot;&gt;\n\t\t\t\t\t&lt;a href=&quot;#vk-htags-72e0cca3-da51-436f-88f5-8a7499bd92cb&quot; class=&quot;vk_tableOfContents_list_item_link&quot;&gt;\n\t\t\t\t\t\t&lt;span class=&quot;vk_tableOfContents_list_item_link_preNumber&quot;&gt;2. &lt;\/span&gt;\n\t\t\t\t\t\tAdd an admin menu to WordPress\n\t\t\t\t\t&lt;\/a&gt;\n\t\t\t\t&lt;\/li&gt;\n\t\t\t\n\t\t\t\t&lt;li class=&quot;vk_tableOfContents_list_item vk_tableOfContents_list_item-h-3&quot;&gt;\n\t\t\t\t\t&lt;a href=&quot;#vk-htags-52d904d7-fa2e-4749-a6a3-5cc413a37a3d&quot; class=&quot;vk_tableOfContents_list_item_link&quot;&gt;\n\t\t\t\t\t\t&lt;span class=&quot;vk_tableOfContents_list_item_link_preNumber&quot;&gt;2.1. &lt;\/span&gt;\n\t\t\t\t\t\tAdd top menu\n\t\t\t\t\t&lt;\/a&gt;\n\t\t\t\t&lt;\/li&gt;\n\t\t\t\n\t\t\t\t&lt;li class=&quot;vk_tableOfContents_list_item vk_tableOfContents_list_item-h-2&quot;&gt;\n\t\t\t\t\t&lt;a href=&quot;#vk-htags-d3983128-cd7b-4079-b393-498f6f66e2bb&quot; class=&quot;vk_tableOfContents_list_item_link&quot;&gt;\n\t\t\t\t\t\t&lt;span class=&quot;vk_tableOfContents_list_item_link_preNumber&quot;&gt;3. &lt;\/span&gt;\n\t\t\t\t\t\tsummary\n\t\t\t\t\t&lt;\/a&gt;\n\t\t\t\t&lt;\/li&gt;\n\t\t\t&lt;\/ul&gt;&lt;\/div&gt;&lt;\/div&gt;\n\n\n\n&lt;h2 class=&quot;wp-block-heading&quot; id=&quot;vk-htags-79b237a7-b178-4458-b0ac-11830888f763&quot;&gt;Code the WordPress admin menu with PHP&lt;\/h2&gt;\n\n\n&lt;div class=&quot;wp-block-image&quot;&gt;\n&lt;figure class=&quot;aligncenter size-full is-resized&quot;&gt;&lt;img src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2025\/01\/ben-griffiths-bj6enzdmsdy-unsplash-scaled.jpeg&quot; alt=&quot;&quot; class=&quot;wp-image-1782&quot; style=&quot;width:835px;height:auto&quot;\/&gt;&lt;\/figure&gt;\n&lt;\/div&gt;\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;WordPress admin menus are coded in PHP using functions provided by WordPress. After a quick look, there aren&#039;t any plugins that allow you to flexibly configure the WordPress admin menu without any coding.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Using the admin menu is useful not only when developing WordPress themes and plugins, but also when developing a single site. As mentioned above, settings related to site operation can be written in source code, such as function.php, but &lt;span data-color=&quot;#fcb900&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;&lt;strong&gt;&lt;span class=&quot;marker-halfRed&quot;&gt;it is not healthy to constantly change settings related to site behavior in source code&lt;\/span&gt;&lt;\/strong&gt;&lt;\/span&gt;. Source code and configuration values should be separated.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-balloon vk_balloon vk_balloon-position-left vk_balloon-type-speech vk_balloon-animation-none&quot;&gt;&lt;div class=&quot;vk_balloon_icon&quot;&gt;&lt;figure&gt;&lt;img class=&quot;vk_balloon_icon_image vk_balloon_icon_image-type-normal &quot; src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2022\/07\/wakatchi_icon_2.jpg&quot; alt=&quot;&quot;\/&gt;&lt;figcaption class=&quot;vk_balloon_icon_name&quot;&gt;\u308f\u304b\u3063\u3061&lt;\/figcaption&gt;&lt;\/figure&gt;&lt;\/div&gt;&lt;div class=&quot;vk_balloon_content_outer&quot;&gt;&lt;div class=&quot;vk_balloon_content  has-background-color has-luminous-vivid-amber-background-color  vk_balloon_content_fullwidth&quot;&gt;&lt;span class=&quot;vk_balloon_content_before  has-text-color has-luminous-vivid-amber-color&quot;&gt;&lt;\/span&gt;&lt;span class=&quot;vk_balloon_content_after &quot;&gt;&lt;\/span&gt;\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;The key to deciding whether to develop a management menu is who (developer? operator?) will be changing the site settings.&lt;\/p&gt;\n&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;Add the admin menu to WordPress using &lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-black-color&quot;&gt;&lt;strong&gt;&lt;span data-color=&quot;#fcb900&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;add_menu_page&lt;\/span&gt;&lt;\/strong&gt;&lt;\/mark&gt;(). Let&#039;s take a closer look here.&lt;\/p&gt;\n\n\n\n&lt;h2 class=&quot;wp-block-heading&quot; id=&quot;vk-htags-72e0cca3-da51-436f-88f5-8a7499bd92cb&quot;&gt;Add an admin menu to WordPress&lt;\/h2&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;The WordPress admin menu is the user interface displayed on the WordPress admin screen. You can add themes, plugins, and optional pages for your site.&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;The management menu has a top menu and submenus. Whether to use the top menu or a submenu is decided based on the characteristics of the plug-in and the needs of the user. Adding a top menu will give you your own top menu on the left side of the WordPress admin console. If you only add a submenu, the existing top menu will have its own submenu.&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;In this article, we will introduce a sample that adds a management menu called &quot;Test Top Menu&quot; to the WordPress management console and displays a screen called &quot;Test Option Settings&quot; as shown below.&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-alert vk_alert alert alert-info has-alert-icon&quot;&gt;&lt;div class=&quot;vk_alert_icon&quot;&gt;&lt;div class=&quot;vk_alert_icon_icon&quot;&gt;&lt;i class=&quot;fa-solid fa-circle-info&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;vk_alert_icon_text&quot;&gt;&lt;span&gt;Information&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;vk_alert_content&quot;&gt;\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;Here is a screenshot of the WordPress Dashboard (in Japanese). However, for multilingual purposes, the following Japanese text has been translated as follows:&lt;\/p&gt;\n\n\n\n&lt;ul class=&quot;wp-block-list&quot;&gt;\n&lt;li&gt;\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u30bf\u30a4\u30c8\u30eb \u2192 admin menu title&lt;\/li&gt;\n\n\n\n&lt;li&gt;\u30c6\u30b9\u30c8\u7528\u30c8\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc \u2192 Test Top Menu&lt;\/li&gt;\n\n\n\n&lt;li&gt;\u30c6\u30b9\u30c8\u7528\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a \u2192 Test Option Settings&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;&lt;\/div&gt;\n\n\n\n&lt;figure class=&quot;wp-block-image&quot;&gt;&lt;img src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01.png&quot; alt=&quot;&quot; class=&quot;wp-image-527&quot;\/&gt;&lt;\/figure&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;The above screen can be incorporated into WordPress using the source code below.&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;hcb_wrap&quot;&gt;&lt;pre class=&quot;prism line-numbers lang-php&quot; data-lang=&quot;PHP&quot;&gt;&lt;code&gt;&lt;?php\nadd_action(&#039;admin_menu&#039;, function(){\n\tadd_menu_page(\n\t\t&#039;admin menu title&#039;\n\t\t, &#039;Test Top Menu&#039;\n\t\t, &#039;manage_options&#039; \n\t\t, &#039;test_top_menu&#039; \n\t\t, &#039;test_menu_contents&#039;\n\t\t, &#039;dashicons-calendar&#039;\n\t\t,0\n\t);\n});\n\nfunction test_menu_contents() {\n \t\/\/ your HTML output code\n}&lt;\/code&gt;&lt;\/pre&gt;&lt;\/div&gt;\n\n\n\n&lt;pre class=&quot;wp-block-code&quot;&gt;&lt;code&gt;\n&lt;\/code&gt;&lt;\/pre&gt;\n\n\n\n&lt;h3 class=&quot;wp-block-heading&quot; id=&quot;vk-htags-52d904d7-fa2e-4749-a6a3-5cc413a37a3d&quot;&gt;Add top menu&lt;\/h3&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;Add the function that adds the admin menu to the WordPress top menu to the action hook name &lt;span data-color=&quot;#f78da7&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(247, 141, 167, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;&lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-black-color&quot;&gt;&lt;strong&gt;&lt;span class=&quot;marker-thickGray&quot; style=&quot;color: #ff0000;&quot;&gt;admin_menu&lt;\/span&gt;&lt;\/strong&gt;&lt;\/mark&gt;&lt;\/span&gt; using &lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-black-color&quot;&gt;&lt;span data-color=&quot;#fcb900&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;&lt;strong&gt;&lt;span class=&quot;marker-thickGray&quot; style=&quot;color: #ff0000;&quot;&gt;add_action&lt;\/span&gt;&lt;\/strong&gt;&lt;\/span&gt;&lt;\/mark&gt;().&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;hcb_wrap&quot;&gt;&lt;pre class=&quot;prism line-numbers lang-php&quot; data-lang=&quot;PHP&quot;&gt;&lt;code&gt;add_action(&#039;admin_menu&#039;, function(){\n    \/\/ your code\n});&lt;\/code&gt;&lt;\/pre&gt;&lt;\/div&gt;\n\n\n\n&lt;pre class=&quot;wp-block-code&quot;&gt;&lt;code&gt;\n&lt;\/code&gt;&lt;\/pre&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;Furthermore, implement the function to add an admin menu using &lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-black-color&quot;&gt;&lt;span data-color=&quot;#fcb900&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;&lt;span class=&quot;marker-halfGray&quot; style=&quot;color: #ff0000;&quot;&gt;&lt;strong&gt;add_menu_page&lt;\/strong&gt;&lt;\/span&gt;&lt;\/span&gt;&lt;\/mark&gt;().&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;hcb_wrap&quot;&gt;&lt;pre class=&quot;prism line-numbers lang-php&quot; data-lang=&quot;PHP&quot;&gt;&lt;code&gt;$hook = add_menu_page(\n    string $page_title,\n    string $menu_title,\n    string $capability,\n    string $menu_slug,\n    callable $function = &#039;&#039;,\n    string $icon_url = &#039;&#039;,\n    int $position = null\n);&lt;\/code&gt;&lt;\/pre&gt;&lt;\/div&gt;\n\n\n\n&lt;pre class=&quot;wp-block-code&quot;&gt;&lt;code&gt;\n\u305d\u308c\u3067\u306f&lt;strong&gt;&lt;span class=&quot;marker-halfGray&quot; style=&quot;color: #ff0000;&quot;&gt;&lt;span data-color=&quot;#fcb900&quot; style=&quot;background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);&quot; class=&quot;vk_highlighter&quot;&gt;&lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-black-color&quot;&gt;add_menu_page&lt;\/mark&gt;&lt;\/span&gt;&lt;\/span&gt;()&lt;\/strong&gt;\u306e\u5f15\u6570\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002\n&lt;\/code&gt;&lt;\/pre&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-border-box vk_borderBox vk_borderBox-background-transparent has-text-color has-vivid-cyan-blue-color is-style-vk_borderBox-style-solid-kado-tit-banner&quot;&gt;&lt;div class=&quot;vk_borderBox_title_container has-background has-vivid-cyan-blue-background-color&quot;&gt;&lt;i class=&quot;&quot;&gt;&lt;\/i&gt;&lt;h4 class=&quot;vk_borderBox_title&quot;&gt;add_menu_page()\u306e\u5f15\u6570&lt;\/h4&gt;&lt;\/div&gt;&lt;div class=&quot;vk_borderBox_body&quot;&gt;\n&lt;ul class=&quot;wp-block-list&quot;&gt;\n&lt;li&gt;$page_title (&lt;strong&gt;&lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-vivid-red-color&quot;&gt;required&lt;\/mark&gt;&lt;\/strong&gt;)&lt;br&gt;The text that appears in the page&#039;s title tag when the menu is selected.&lt;\/li&gt;\n\n\n\n&lt;li&gt;$menu_title (&lt;strong&gt;&lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-vivid-red-color&quot;&gt;required&lt;\/mark&gt;&lt;\/strong&gt;)&lt;br&gt;Text used for the menu title.&lt;br&gt;In the sample in this article, &quot;Test Top Menu&quot; is displayed on the left side of the WordPress management console.&lt;\/li&gt;\n\n\n\n&lt;li&gt;$capability (&lt;strong&gt;&lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-vivid-red-color&quot;&gt;required&lt;\/mark&gt;&lt;\/strong&gt;)&lt;br&gt;Permissions required to display this menu to users.&lt;br&gt;The sample in this article grants the managed_options permission, which allows access to the management menu.&lt;\/li&gt;\n\n\n\n&lt;li&gt;$menu_slug (&lt;strong&gt;&lt;mark style=&quot;background-color:rgba(0, 0, 0, 0)&quot; class=&quot;has-inline-color has-vivid-red-color&quot;&gt;required&lt;\/mark&gt;&lt;\/strong&gt;)&lt;br&gt;Slug name to refer to this menu.&lt;br&gt;Must be unique for this menu page. Additionally, only lowercase alphanumeric characters, dashes, and underscore characters are allowed.&lt;\/li&gt;\n\n\n\n&lt;li&gt;$function (optional)&lt;br&gt;Function called to output the content of this page.&lt;\/li&gt;\n\n\n\n&lt;li&gt;$icon_url (optional)&lt;br&gt;URL to the icon used for this menu.&lt;br&gt;Pass the URL to the icon included in the plugin using the &lt;a href=&quot;https:\/\/developer.wordpress.org\/reference\/functions\/plugins_url\/&quot;&gt;plugins_url&lt;\/a&gt; function.&lt;br&gt;You can also use &lt;a href=&quot;https:\/\/developer.wordpress.org\/resource\/dashicons\/&quot;&gt;Dashicons&lt;\/a&gt; font icons. The sample in this article uses the calendar icon dashicons-calendar.&lt;\/li&gt;\n\n\n\n&lt;li&gt;$position (optional)&lt;br&gt;The position in the menu order in which this item appears.&lt;br&gt;By default it is at the bottom of the admin menu structure. In the sample of this article, it is specified and displayed at the top. Please refer to the following to determine where to place it in the menu structure.\n&lt;ul class=&quot;wp-block-list&quot;&gt;\n&lt;li&gt;2 \u2013 Dashboard&lt;\/li&gt;\n\n\n\n&lt;li&gt;4 \u2013 Separator&lt;\/li&gt;\n\n\n\n&lt;li&gt;5 \u2013 Post&lt;\/li&gt;\n\n\n\n&lt;li&gt;10 \u2013 Media&lt;\/li&gt;\n\n\n\n&lt;li&gt;15 \u2013 Link&lt;\/li&gt;\n\n\n\n&lt;li&gt;20 \u2013 Page&lt;\/li&gt;\n\n\n\n&lt;li&gt;25 \u2013 Comments&lt;\/li&gt;\n\n\n\n&lt;li&gt;59 \u2013 Separator&lt;\/li&gt;\n\n\n\n&lt;li&gt;60 \u2013 Appearance&lt;\/li&gt;\n\n\n\n&lt;li&gt;65 \u2013 Plugins&lt;\/li&gt;\n\n\n\n&lt;li&gt;70 \u2013 User&lt;\/li&gt;\n\n\n\n&lt;li&gt;75 \u2013 Tools&lt;\/li&gt;\n\n\n\n&lt;li&gt;80 \u2013 Settings&lt;\/li&gt;\n\n\n\n&lt;li&gt;99 \u2013 Separator&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n\n\n\n&lt;li&gt;$hook_suffix (optional)&lt;br&gt;Prefix of the function that receives the processing results of the page displayed in this management menu.&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;&lt;\/div&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;Implement a function to generate the page displayed in the top menu. In the sample in this article, only the title and a simple string are displayed.&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;hcb_wrap&quot;&gt;&lt;pre class=&quot;prism line-numbers lang-php&quot; data-lang=&quot;PHP&quot;&gt;&lt;code&gt;&lt;?php\nadd_menu_page(\n\t&#039;admin menu title&#039;\n\t, &#039;Test Top Menu&#039;\n\t, &#039;manage_options&#039; \n\t, &#039;test_top_menu&#039; \n\t, &#039;test_menu_contents&#039;\n\t, plugins_url(\u3000&#039;myplugin\/assets\/icon.png&#039;) \n\t,0\n\t);\n\nfunction test_menu_contents() {\n\t\t?&gt;\n\t&lt;div class=&quot;wrap&quot;&gt;\n\t\t&lt;h1&gt;Test Option Settings&lt;\/h1&gt;\n\t\t&lt;p&gt;Hello admin menu !!&lt;\/p&gt;\n\t&lt;\/div&gt;\n\t&lt;?php\n}&lt;\/code&gt;&lt;\/pre&gt;&lt;\/div&gt;\n\n\n\n&lt;pre class=&quot;wp-block-code&quot;&gt;&lt;code&gt;\n&lt;\/code&gt;&lt;\/pre&gt;\n\n\n\n&lt;h2 class=&quot;wp-block-heading&quot; id=&quot;vk-htags-d3983128-cd7b-4079-b393-498f6f66e2bb&quot;&gt;summary&lt;\/h2&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;This time, we introduced how to add an admin menu to the WordPress admin console. It requires implementation using PHP, but I think you&#039;ll find it easier than you expected.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Since the management menu is a simple screen for site operators&lt;\/span&gt;, it is better to focus on functionality rather than design.&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;In Parts 2 to 4, we will introduce how to create submenus and management screens, how to update settings, etc., so please take a look.&lt;\/p&gt;\n\n\n\n&lt;div class=&quot;wp-block-vk-blocks-select-post-list vk_posts vk_posts-postType-post vk_posts-layout-media vk_postList&quot;&gt;&lt;div id=&quot;post-422&quot; class=&quot;vk_post vk_post-postType-post media vk_post-col-xs-12 vk_post-col-sm-12 vk_post-col-md-6 vk_post-col-lg-6 vk_post-col-xl-6 vk_post-col-xxl-6 post-1786 post type-post status-publish format-standard has-post-thumbnail hentry tag-php tag-for-beginners tag-wordpress-management&quot;&gt;&lt;div class=&quot;vk_post_imgOuter media-img&quot; style=&quot;background-image:url(https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-1024x683.jpg)&quot;&gt;&lt;a href=&quot;https:\/\/wakatchi.dev\/wordpress-admin-submenu\/&quot;&gt;&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-300x200.jpg&quot; class=&quot;vk_post_imgOuter_img wp-post-image&quot; alt=&quot;&quot; srcset=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-300x200.jpg 300w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-600x400.jpg 600w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-1024x683.jpg 1024w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-768x512.jpg 768w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-1536x1024.jpg 1536w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2.jpg 1920w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; \/&gt;&lt;\/a&gt;&lt;\/div&gt;&lt;!-- [ \/.vk_post_imgOuter ] --&gt;&lt;div class=&quot;vk_post_body media-body&quot;&gt;&lt;h5 class=&quot;vk_post_title media-title&quot;&gt;&lt;a href=&quot;https:\/\/wakatchi.dev\/wordpress-admin-submenu\/&quot;&gt;WordPress\u306b\u72ec\u81ea\u306e\u30b5\u30d6\u30e1\u30cb\u30e5\u30fc\u306e\u8ffd\u52a0\u3059\u308b&lt;\/a&gt;&lt;\/h5&gt;&lt;div class=&quot;vk_post_date media-date published&quot;&gt;2023\u5e7410\u670820\u65e5&lt;\/div&gt;&lt;\/div&gt;&lt;!-- [ \/.media-body ] --&gt;&lt;\/div&gt;&lt;!-- [ \/.media ] --&gt;\n\n&lt;div id=&quot;post-563&quot; class=&quot;vk_post vk_post-postType-post media vk_post-col-xs-12 vk_post-col-sm-12 vk_post-col-md-6 vk_post-col-lg-6 vk_post-col-xl-6 vk_post-col-xxl-6 post-1786 post type-post status-publish format-standard has-post-thumbnail hentry tag-php tag-for-beginners tag-wordpress-management&quot;&gt;&lt;div class=&quot;vk_post_imgOuter media-img&quot; style=&quot;background-image:url(https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-1024x683.jpg)&quot;&gt;&lt;a href=&quot;https:\/\/wakatchi.dev\/wordpress-admin-settings-api\/&quot;&gt;&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-300x200.jpg&quot; class=&quot;vk_post_imgOuter_img wp-post-image&quot; alt=&quot;&quot; srcset=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-300x200.jpg 300w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-600x400.jpg 600w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-1024x683.jpg 1024w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-768x512.jpg 768w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-1536x1024.jpg 1536w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3.jpg 1920w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; \/&gt;&lt;\/a&gt;&lt;\/div&gt;&lt;!-- [ \/.vk_post_imgOuter ] --&gt;&lt;div class=&quot;vk_post_body media-body&quot;&gt;&lt;h5 class=&quot;vk_post_title media-title&quot;&gt;&lt;a href=&quot;https:\/\/wakatchi.dev\/wordpress-admin-settings-api\/&quot;&gt;WordPress\u306b\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u72ec\u81ea\u306e\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\u3059\u308b&lt;\/a&gt;&lt;\/h5&gt;&lt;div class=&quot;vk_post_date media-date published&quot;&gt;2023\u5e7410\u670825\u65e5&lt;\/div&gt;&lt;\/div&gt;&lt;!-- [ \/.media-body ] --&gt;&lt;\/div&gt;&lt;!-- [ \/.media ] --&gt;\n\n&lt;div id=&quot;post-565&quot; class=&quot;vk_post vk_post-postType-post media vk_post-col-xs-12 vk_post-col-sm-12 vk_post-col-md-6 vk_post-col-lg-6 vk_post-col-xl-6 vk_post-col-xxl-6 post-1786 post type-post status-publish format-standard has-post-thumbnail hentry tag-php tag-for-beginners tag-wordpress-management&quot;&gt;&lt;div class=&quot;vk_post_imgOuter media-img&quot; style=&quot;background-image:url(https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-1024x683.jpg)&quot;&gt;&lt;a href=&quot;https:\/\/wakatchi.dev\/wordpress-admin-data-download\/&quot;&gt;&lt;img width=&quot;300&quot; height=&quot;200&quot; src=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-300x200.jpg&quot; class=&quot;vk_post_imgOuter_img wp-post-image&quot; alt=&quot;&quot; srcset=&quot;https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-300x200.jpg 300w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-600x400.jpg 600w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-1024x683.jpg 1024w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-768x512.jpg 768w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-1536x1024.jpg 1536w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4.jpg 1920w&quot; sizes=&quot;(max-width: 300px) 100vw, 300px&quot; \/&gt;&lt;\/a&gt;&lt;\/div&gt;&lt;!-- [ \/.vk_post_imgOuter ] --&gt;&lt;div class=&quot;vk_post_body media-body&quot;&gt;&lt;h5 class=&quot;vk_post_title media-title&quot;&gt;&lt;a href=&quot;https:\/\/wakatchi.dev\/wordpress-admin-data-download\/&quot;&gt;WordPress\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u72ec\u81ea\u306e\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\u3059\u308b&lt;\/a&gt;&lt;\/h5&gt;&lt;div class=&quot;vk_post_date media-date published&quot;&gt;2023\u5e7410\u670827\u65e5&lt;\/div&gt;&lt;\/div&gt;&lt;!-- [ \/.media-body ] --&gt;&lt;\/div&gt;&lt;!-- [ \/.media ] --&gt;&lt;\/div&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;The official website for WordPress developers introduces how to develop a management menu for the plugin handbook. Please refer to this article as well.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;figure class=&quot;wp-block-embed is-type-wp-embed is-provider-wordpress-developer-resources wp-block-embed-wordpress-developer-resources&quot;&gt;&lt;div class=&quot;wp-block-embed__wrapper&quot;&gt;\n\t\t\t&lt;div class=&quot;blog-card&quot;&gt;\n\t\t\t\t&lt;div class=&quot;blog-card-body-outer&quot;&gt;\n\t\t\t\t\t&lt;div class=&quot;blog-card-body&quot;&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;h5 class=&quot;blog-card-title&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;a href=&quot;https:\/\/developer.wordpress.org\/plugins\/administration-menus\/&quot;&gt;Administration Menus \u2013 Plugin Handbook | Developer.WordPress.org&lt;\/a&gt;\n\t\t\t\t\t\t\t&lt;\/h5&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;p class=&quot;blog-card-text&quot;&gt;\n\t\t\t\t\t\t\t\tAdministration Menus are the interfaces displayed in WordPress Administration. They allow you to add option pages for your plugin. Top-Level&hellip;\t\t\t\t\t\t\t&lt;\/p&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;blog-card-site-title&quot;&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;http:\/\/developer.wordpress.org&quot;&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;img loading=&quot;lazy&quot; src=&quot;https:\/\/s.w.org\/favicon.ico?2&quot; width=&quot;16&quot; height=&quot;16&quot; alt=&quot;&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWordPress Developer Resources\t\t\t\t\t\t\t&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t\t\t\t\t&lt;div class=&quot;blog-card-image-outer&quot;&gt;\n\t\t\t\t\t\t&lt;a href=&quot;https:\/\/developer.wordpress.org\/plugins\/administration-menus\/&quot; class=&quot;blog-card-image-frame&quot;&gt;\n\t\t\t\t\t\t\t&lt;img class=&quot;blog-card-image-src&quot; src=&quot;https:\/\/developer.wordpress.org\/wp-content\/themes\/wporg-developer-2023\/images\/opengraph-image.png&quot; alt=&quot;&quot;&gt;\n\t\t\t\t\t\t&lt;\/a&gt;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t\t\t&lt;\/div&gt;\n\n\t\t\t\n&lt;\/div&gt;&lt;\/figure&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;I hope this article is of some help.&lt;\/span&gt;&lt;\/p&gt;\n\n\n\n&lt;p class=&quot;wp-block-paragraph&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Thank you for reading to the end!&lt;\/span&gt;&lt;\/p&gt;\n<\/div><div class=\"gfmr-markdown-rendered\">\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">Hello, I'm Wakatchi ( <a href=\"https:\/\/twitter.com\/wakatchi_tech\" target=\"_blank\" rel=\"noopener\">@wakatchi_tech<\/a> )<\/span><\/p>\n\n\n\n<div class=\"wp-block-vk-blocks-balloon vk_balloon vk_balloon-position-right vk_balloon-type-speech vk_balloon-animation-none\"><div class=\"vk_balloon_icon\"><figure><img decoding=\"async\" class=\"vk_balloon_icon_image vk_balloon_icon_image-type-normal \" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2022\/07\/computer01_boy.png\" alt=\"\" \/><figcaption class=\"vk_balloon_icon_name\">\u8cea\u554f\u8005<\/figcaption><\/figure><\/div><div class=\"vk_balloon_content_outer\"><div class=\"vk_balloon_content  has-background-color has-pale-cyan-blue-background-color \"><span class=\"vk_balloon_content_before  has-text-color has-pale-cyan-blue-color\"><\/span><span class=\"vk_balloon_content_after \"><\/span>\n<p class=\"wp-block-paragraph\">Is there a way to save settings for a blog created with WordPress?<\/p>\n<\/div><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">When running a site developed with WordPress, you may want to save the site's unique settings or change the settings while operating the site.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\"><span class=\"marker-halfYellow\"><span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0)\" class=\"vk_highlighter\"><strong>For site-specific settings, we recommend developing your own WordPress admin menu.<\/strong><\/span><\/span> Site setting values (parameters) can be changed by modifying the source code such as function.php using a plugin editor. However, if the source code is under version control or if the site operator is not good at coding, constant changes to the source code may not be healthy.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">You can easily create an admin menu by simply calling functions provided by WordPress. Also, unlike the front-end screen that is open to site users, the management menu does not require much design, as a simple screen for site operators is sufficient.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">In this article, we will show you how to add your own admin menu to WordPress.<\/span><\/p>\n\n\n\n<div class=\"wp-block-vk-blocks-border-box vk_borderBox vk_borderBox-background-transparent has-text-color has-pale-cyan-blue-color is-style-vk_borderBox-style-solid-kado-tit-tab\"><div class=\"vk_borderBox_title_container has-background has-pale-cyan-blue-background-color\"><i class=\"\"><\/i><h4 class=\"vk_borderBox_title\"><strong><strong>This article is recommended for <\/strong><\/strong><\/h4><\/div><div class=\"vk_borderBox_body\">\n<ul class=\"is-style-vk-handpoint-mark wp-block-list\">\n<li>WordPress site developers who want to configure the entire site from the WordPress admin screen<\/li>\n\n\n\n<li>WordPress theme and plugin developer<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-vk-blocks-table-of-contents-new vk_tableOfContents vk_tableOfContents-style-default tabs\"><div class=\"tab\"><div class=\"vk_tableOfContents_title\">\u76ee\u6b21<\/div><input type=\"checkbox\" id=\"chck1\" \/><label class=\"tab-label vk_tableOfContents_openCloseBtn button_status button_status-open\" for=\"chck1\" id=\"vk-tab-label\">CLOSE<\/label><ul class=\"vk_tableOfContents_list tab_content-open\">\n\t\t\t\t<li class=\"vk_tableOfContents_list_item vk_tableOfContents_list_item-h-2\">\n\t\t\t\t\t<a href=\"#vk-htags-79b237a7-b178-4458-b0ac-11830888f763\" class=\"vk_tableOfContents_list_item_link\">\n\t\t\t\t\t\t<span class=\"vk_tableOfContents_list_item_link_preNumber\">1. <\/span>\n\t\t\t\t\t\tCode the WordPress admin menu with PHP\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t\n\t\t\t\t<li class=\"vk_tableOfContents_list_item vk_tableOfContents_list_item-h-2\">\n\t\t\t\t\t<a href=\"#vk-htags-72e0cca3-da51-436f-88f5-8a7499bd92cb\" class=\"vk_tableOfContents_list_item_link\">\n\t\t\t\t\t\t<span class=\"vk_tableOfContents_list_item_link_preNumber\">2. <\/span>\n\t\t\t\t\t\tAdd an admin menu to WordPress\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t\n\t\t\t\t<li class=\"vk_tableOfContents_list_item vk_tableOfContents_list_item-h-3\">\n\t\t\t\t\t<a href=\"#vk-htags-52d904d7-fa2e-4749-a6a3-5cc413a37a3d\" class=\"vk_tableOfContents_list_item_link\">\n\t\t\t\t\t\t<span class=\"vk_tableOfContents_list_item_link_preNumber\">2.1. <\/span>\n\t\t\t\t\t\tAdd top menu\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t\n\t\t\t\t<li class=\"vk_tableOfContents_list_item vk_tableOfContents_list_item-h-2\">\n\t\t\t\t\t<a href=\"#vk-htags-d3983128-cd7b-4079-b393-498f6f66e2bb\" class=\"vk_tableOfContents_list_item_link\">\n\t\t\t\t\t\t<span class=\"vk_tableOfContents_list_item_link_preNumber\">3. <\/span>\n\t\t\t\t\t\tsummary\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t<\/ul><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"vk-htags-79b237a7-b178-4458-b0ac-11830888f763\">Code the WordPress admin menu with PHP<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1707\" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2025\/01\/ben-griffiths-bj6enzdmsdy-unsplash-scaled.jpeg\" alt=\"\" class=\"wp-image-1782\" style=\"width:835px;height:auto\" srcset=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2025\/01\/ben-griffiths-bj6enzdmsdy-unsplash-scaled.jpeg 2560w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2025\/01\/ben-griffiths-bj6enzdmsdy-unsplash-scaled-600x400.jpeg 600w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">WordPress admin menus are coded in PHP using functions provided by WordPress. After a quick look, there aren't any plugins that allow you to flexibly configure the WordPress admin menu without any coding.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">Using the admin menu is useful not only when developing WordPress themes and plugins, but also when developing a single site. As mentioned above, settings related to site operation can be written in source code, such as function.php, but <span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0)\" class=\"vk_highlighter\"><strong><span class=\"marker-halfRed\">it is not healthy to constantly change settings related to site behavior in source code<\/span><\/strong><\/span>. Source code and configuration values should be separated.<\/span><\/p>\n\n\n\n<div class=\"wp-block-vk-blocks-balloon vk_balloon vk_balloon-position-left vk_balloon-type-speech vk_balloon-animation-none\"><div class=\"vk_balloon_icon\"><figure><img decoding=\"async\" class=\"vk_balloon_icon_image vk_balloon_icon_image-type-normal \" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2022\/07\/wakatchi_icon_2.jpg\" alt=\"\" \/><figcaption class=\"vk_balloon_icon_name\">\u308f\u304b\u3063\u3061<\/figcaption><\/figure><\/div><div class=\"vk_balloon_content_outer\"><div class=\"vk_balloon_content  has-background-color has-luminous-vivid-amber-background-color  vk_balloon_content_fullwidth\"><span class=\"vk_balloon_content_before  has-text-color has-luminous-vivid-amber-color\"><\/span><span class=\"vk_balloon_content_after \"><\/span>\n<p class=\"wp-block-paragraph\">The key to deciding whether to develop a management menu is who (developer? operator?) will be changing the site settings.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Add the admin menu to WordPress using <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong><span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0)\" class=\"vk_highlighter\">add_menu_page<\/span><\/strong><\/mark>(). Let's take a closer look here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"vk-htags-72e0cca3-da51-436f-88f5-8a7499bd92cb\">Add an admin menu to WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The WordPress admin menu is the user interface displayed on the WordPress admin screen. You can add themes, plugins, and optional pages for your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The management menu has a top menu and submenus. Whether to use the top menu or a submenu is decided based on the characteristics of the plug-in and the needs of the user. Adding a top menu will give you your own top menu on the left side of the WordPress admin console. If you only add a submenu, the existing top menu will have its own submenu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we will introduce a sample that adds a management menu called \"Test Top Menu\" to the WordPress management console and displays a screen called \"Test Option Settings\" as shown below.<\/p>\n\n\n\n<div class=\"wp-block-vk-blocks-alert vk_alert alert alert-info has-alert-icon\"><div class=\"vk_alert_icon\"><div class=\"vk_alert_icon_icon\"><i class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"><\/i><\/div><div class=\"vk_alert_icon_text\"><span>Information<\/span><\/div><\/div><div class=\"vk_alert_content\">\n<p class=\"wp-block-paragraph\">Here is a screenshot of the WordPress Dashboard (in Japanese). However, for multilingual purposes, the following Japanese text has been translated as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u30bf\u30a4\u30c8\u30eb \u2192 admin menu title<\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u7528\u30c8\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc \u2192 Test Top Menu<\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u7528\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a \u2192 Test Option Settings<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"502\" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01.png\" alt=\"\" class=\"wp-image-527\" srcset=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01.png 962w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01-600x313.png 600w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01-300x157.png 300w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01-768x401.png 768w, https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/01\/wordpress-admin-menu-top-menu-ex_01-375x196.png 375w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The above screen can be incorporated into WordPress using the source code below.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?php\nadd_action(&#039;admin_menu&#039;, function(){\n\tadd_menu_page(\n\t\t&#039;admin menu title&#039;\n\t\t, &#039;Test Top Menu&#039;\n\t\t, &#039;manage_options&#039; \n\t\t, &#039;test_top_menu&#039; \n\t\t, &#039;test_menu_contents&#039;\n\t\t, &#039;dashicons-calendar&#039;\n\t\t,0\n\t);\n});\n\nfunction test_menu_contents() {\n \t\/\/ your HTML output code\n}<\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"vk-htags-52d904d7-fa2e-4749-a6a3-5cc413a37a3d\">Add top menu<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add the function that adds the admin menu to the WordPress top menu to the action hook name <span data-color=\"#f78da7\" style=\"background: linear-gradient(transparent 60%,rgba(247, 141, 167, 0.7) 0)\" class=\"vk_highlighter\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong><span class=\"marker-thickGray\" style=\"color: #ff0000\">admin_menu<\/span><\/strong><\/mark><\/span> using <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0)\" class=\"vk_highlighter\"><strong><span class=\"marker-thickGray\" style=\"color: #ff0000\">add_action<\/span><\/strong><\/span><\/mark>().<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>add_action(&#039;admin_menu&#039;, function(){\n    \/\/ your code\n});<\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, implement the function to add an admin menu using <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0)\" class=\"vk_highlighter\"><span class=\"marker-halfGray\" style=\"color: #ff0000\"><strong>add_menu_page<\/strong><\/span><\/span><\/mark>().<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>$hook = add_menu_page(\n    string $page_title,\n    string $menu_title,\n    string $capability,\n    string $menu_slug,\n    callable $function = &#039;&#039;,\n    string $icon_url = &#039;&#039;,\n    int $position = null\n);<\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\u305d\u308c\u3067\u306f<strong><span class=\"marker-halfGray\" style=\"color: #ff0000\"><span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0)\" class=\"vk_highlighter\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">add_menu_page<\/mark><\/span><\/span>()<\/strong>\u306e\u5f15\u6570\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002\n<\/code><\/pre>\n\n\n\n<div class=\"wp-block-vk-blocks-border-box vk_borderBox vk_borderBox-background-transparent has-text-color has-vivid-cyan-blue-color is-style-vk_borderBox-style-solid-kado-tit-banner\"><div class=\"vk_borderBox_title_container has-background has-vivid-cyan-blue-background-color\"><i class=\"\"><\/i><h4 class=\"vk_borderBox_title\">add_menu_page()\u306e\u5f15\u6570<\/h4><\/div><div class=\"vk_borderBox_body\">\n<ul class=\"wp-block-list\">\n<li>$page_title (<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">required<\/mark><\/strong>)<br>The text that appears in the page's title tag when the menu is selected.<\/li>\n\n\n\n<li>$menu_title (<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">required<\/mark><\/strong>)<br>Text used for the menu title.<br>In the sample in this article, \"Test Top Menu\" is displayed on the left side of the WordPress management console.<\/li>\n\n\n\n<li>$capability (<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">required<\/mark><\/strong>)<br>Permissions required to display this menu to users.<br>The sample in this article grants the managed_options permission, which allows access to the management menu.<\/li>\n\n\n\n<li>$menu_slug (<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">required<\/mark><\/strong>)<br>Slug name to refer to this menu.<br>Must be unique for this menu page. Additionally, only lowercase alphanumeric characters, dashes, and underscore characters are allowed.<\/li>\n\n\n\n<li>$function (optional)<br>Function called to output the content of this page.<\/li>\n\n\n\n<li>$icon_url (optional)<br>URL to the icon used for this menu.<br>Pass the URL to the icon included in the plugin using the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/plugins_url\/\" target=\"_blank\" rel=\"noopener\">plugins_url<\/a> function.<br>You can also use <a href=\"https:\/\/developer.wordpress.org\/resource\/dashicons\/\" target=\"_blank\" rel=\"noopener\">Dashicons<\/a> font icons. The sample in this article uses the calendar icon dashicons-calendar.<\/li>\n\n\n\n<li>$position (optional)<br>The position in the menu order in which this item appears.<br>By default it is at the bottom of the admin menu structure. In the sample of this article, it is specified and displayed at the top. Please refer to the following to determine where to place it in the menu structure.\n<ul class=\"wp-block-list\">\n<li>2 \u2013 Dashboard<\/li>\n\n\n\n<li>4 \u2013 Separator<\/li>\n\n\n\n<li>5 \u2013 Post<\/li>\n\n\n\n<li>10 \u2013 Media<\/li>\n\n\n\n<li>15 \u2013 Link<\/li>\n\n\n\n<li>20 \u2013 Page<\/li>\n\n\n\n<li>25 \u2013 Comments<\/li>\n\n\n\n<li>59 \u2013 Separator<\/li>\n\n\n\n<li>60 \u2013 Appearance<\/li>\n\n\n\n<li>65 \u2013 Plugins<\/li>\n\n\n\n<li>70 \u2013 User<\/li>\n\n\n\n<li>75 \u2013 Tools<\/li>\n\n\n\n<li>80 \u2013 Settings<\/li>\n\n\n\n<li>99 \u2013 Separator<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>$hook_suffix (optional)<br>Prefix of the function that receives the processing results of the page displayed in this management menu.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Implement a function to generate the page displayed in the top menu. In the sample in this article, only the title and a simple string are displayed.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?php\nadd_menu_page(\n\t&#039;admin menu title&#039;\n\t, &#039;Test Top Menu&#039;\n\t, &#039;manage_options&#039; \n\t, &#039;test_top_menu&#039; \n\t, &#039;test_menu_contents&#039;\n\t, plugins_url(\u3000&#039;myplugin\/assets\/icon.png&#039;) \n\t,0\n\t);\n\nfunction test_menu_contents() {\n\t\t?&gt;\n\t&lt;div class=&quot;wrap&quot;&gt;\n\t\t&lt;h1&gt;Test Option Settings&lt;\/h1&gt;\n\t\t&lt;p&gt;Hello admin menu !!&lt;\/p&gt;\n\t&lt;\/div&gt;\n\t&lt;?php\n}<\/code><\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"vk-htags-d3983128-cd7b-4079-b393-498f6f66e2bb\">summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">This time, we introduced how to add an admin menu to the WordPress admin console. It requires implementation using PHP, but I think you'll find it easier than you expected.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">Since the management menu is a simple screen for site operators<\/span>, it is better to focus on functionality rather than design.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Parts 2 to 4, we will introduce how to create submenus and management screens, how to update settings, etc., so please take a look.<\/p>\n\n\n\n<div class=\"wp-block-vk-blocks-select-post-list vk_posts vk_posts-postType-post vk_posts-layout-media vk_postList\"><div id=\"post-422\" class=\"vk_post vk_post-postType-post media vk_post-col-xs-12 vk_post-col-sm-12 vk_post-col-md-6 vk_post-col-lg-6 vk_post-col-xl-6 vk_post-col-xxl-6 post-1786 post type-post status-publish format-standard has-post-thumbnail hentry tag-php tag-for-beginners tag-wordpress-management\"><div class=\"vk_post_imgOuter media-img\" style=\"background-image:url(https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-1024x683.jpg)\"><a href=\"https:\/\/wakatchi.dev\/wordpress-admin-submenu\/\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu2-300x200.jpg\" class=\"vk_post_imgOuter_img wp-post-image\" alt=\"\" \/><\/a><\/div><!-- [ \/.vk_post_imgOuter ] --><div class=\"vk_post_body media-body\"><h5 class=\"vk_post_title media-title\"><a href=\"https:\/\/wakatchi.dev\/wordpress-admin-submenu\/\">WordPress\u306b\u72ec\u81ea\u306e\u30b5\u30d6\u30e1\u30cb\u30e5\u30fc\u306e\u8ffd\u52a0\u3059\u308b<\/a><\/h5><div class=\"vk_post_date media-date published\">2023\u5e7410\u670820\u65e5<\/div><\/div><!-- [ \/.media-body ] --><\/div><!-- [ \/.media ] -->\n\n<div id=\"post-563\" class=\"vk_post vk_post-postType-post media vk_post-col-xs-12 vk_post-col-sm-12 vk_post-col-md-6 vk_post-col-lg-6 vk_post-col-xl-6 vk_post-col-xxl-6 post-1786 post type-post status-publish format-standard has-post-thumbnail hentry tag-php tag-for-beginners tag-wordpress-management\"><div class=\"vk_post_imgOuter media-img\" style=\"background-image:url(https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-1024x683.jpg)\"><a href=\"https:\/\/wakatchi.dev\/wordpress-admin-settings-api\/\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu3-300x200.jpg\" class=\"vk_post_imgOuter_img wp-post-image\" alt=\"\" \/><\/a><\/div><!-- [ \/.vk_post_imgOuter ] --><div class=\"vk_post_body media-body\"><h5 class=\"vk_post_title media-title\"><a href=\"https:\/\/wakatchi.dev\/wordpress-admin-settings-api\/\">WordPress\u306b\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u72ec\u81ea\u306e\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/a><\/h5><div class=\"vk_post_date media-date published\">2023\u5e7410\u670825\u65e5<\/div><\/div><!-- [ \/.media-body ] --><\/div><!-- [ \/.media ] -->\n\n<div id=\"post-565\" class=\"vk_post vk_post-postType-post media vk_post-col-xs-12 vk_post-col-sm-12 vk_post-col-md-6 vk_post-col-lg-6 vk_post-col-xl-6 vk_post-col-xxl-6 post-1786 post type-post status-publish format-standard has-post-thumbnail hentry tag-php tag-for-beginners tag-wordpress-management\"><div class=\"vk_post_imgOuter media-img\" style=\"background-image:url(https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-1024x683.jpg)\"><a href=\"https:\/\/wakatchi.dev\/wordpress-admin-data-download\/\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/wakatchi.dev\/wp-content\/uploads\/2023\/10\/wordpress-admin-menu4-300x200.jpg\" class=\"vk_post_imgOuter_img wp-post-image\" alt=\"\" \/><\/a><\/div><!-- [ \/.vk_post_imgOuter ] --><div class=\"vk_post_body media-body\"><h5 class=\"vk_post_title media-title\"><a href=\"https:\/\/wakatchi.dev\/wordpress-admin-data-download\/\">WordPress\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u72ec\u81ea\u306e\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/a><\/h5><div class=\"vk_post_date media-date published\">2023\u5e7410\u670827\u65e5<\/div><\/div><!-- [ \/.media-body ] --><\/div><!-- [ \/.media ] --><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">The official website for WordPress developers introduces how to develop a management menu for the plugin handbook. Please refer to this article as well.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-wordpress-developer-resources wp-block-embed-wordpress-developer-resources\"><div class=\"wp-block-embed__wrapper\">\n\t\t\t<div class=\"blog-card\">\n\t\t\t\t<div class=\"blog-card-body-outer\">\n\t\t\t\t\t<div class=\"blog-card-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h5 class=\"blog-card-title\">\n\t\t\t\t\t\t\t\t<a href=\"https:\/\/developer.wordpress.org\/plugins\/administration-menus\/\" target=\"_blank\" rel=\"noopener\">Administration Menus \u2013 Plugin Handbook | Developer.WordPress.org<\/a>\n\t\t\t\t\t\t\t<\/h5>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"blog-card-text\">\n\t\t\t\t\t\t\t\tAdministration Menus are the interfaces displayed in WordPress Administration. They allow you to add option pages for your plugin. Top-Level&hellip;\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"blog-card-site-title\">\n\t\t\t\t\t\t\t<a href=\"http:\/\/developer.wordpress.org\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/s.w.org\/favicon.ico?2\" width=\"16\" height=\"16\" alt=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWordPress Developer Resources\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"blog-card-image-outer\">\n\t\t\t\t\t\t<a href=\"https:\/\/developer.wordpress.org\/plugins\/administration-menus\/\" class=\"blog-card-image-frame\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t\t<img decoding=\"async\" class=\"blog-card-image-src\" src=\"https:\/\/developer.wordpress.org\/wp-content\/themes\/wporg-developer-2023\/images\/opengraph-image.png\" alt=\"\">\n\t\t\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">I hope this article is of some help.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"font-size: 12pt\">Thank you for reading to the end!<\/span><\/p>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>For site-specific settings, we recommend developing your own WordPress admin menu. Site setting values (parameters) can be changed by modifying the source code such as function.php using a plugin editor. However, if the source code is under version control or if the site operator is not good at coding, constant changes to the source code may not be healthy.<\/p>\n","protected":false},"author":1,"featured_media":1514,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","_gfmr_meta_descriptions":[],"_gfmr_multilingual_taxonomy_terms":[],"_veu_custom_css":"","vkexunit_cta_each_option":"","_lightning_design_setting":{"layout":"default","section_base":"default","header_trans":"default"},"header_top_description":"","footnotes":""},"categories":[],"tags":[88,110,111],"class_list":["post-1786","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-php","tag-for-beginners","tag-wordpress-management"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/posts\/1786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/comments?post=1786"}],"version-history":[{"count":2,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/posts\/1786\/revisions"}],"predecessor-version":[{"id":1789,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/posts\/1786\/revisions\/1789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/media\/1514"}],"wp:attachment":[{"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/media?parent=1786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/categories?post=1786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wakatchi.dev\/en\/wp-json\/wp\/v2\/tags?post=1786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}