{"id":518812,"date":"2020-01-29T09:03:39","date_gmt":"2020-01-29T09:03:39","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=518812\/"},"modified":"2022-07-18T08:12:20","modified_gmt":"2022-07-18T08:12:20","slug":"how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/","title":{"rendered":"How to add setting for custom plugin in the WordPress setting menu?"},"content":{"rendered":"<h2>Objective of the blog:<\/h2>\n<p>The objective of this blog is to help you know how the setting of any custom plugin is created. Nowadays, most of the plugins contain settings to allow users to alter the functionality of the plugin according to their choice.<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-816783\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-1.png\" alt=\"Objective of the blog How to add setting for custom plugin in the WordPress setting menu?\" width=\"760\" height=\"336\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-1.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-1-300x133.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><br \/>\nIn this blog, we are creating the custom plugin for your reference. The basic requirements to add the setting of the plugin are:<\/p>\n<ul>\n<li>To register the settings for a Plugin<\/li>\n<li>To create an Options Page for a plugin<\/li>\n<li>To display Settings of the plugin on the Option\u2019s Page<\/li>\n<\/ul>\n<h3>Steps to add the plugin setting:<\/h3>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-816785\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-2.png\" alt=\"Steps to add the plugin setting: How to add setting for custom plugin in the WordPress setting menu?\" width=\"700\" height=\"400\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-2.png 700w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Info-Banner-WordPress-2-300x171.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p><strong>1.<\/strong>\u00a0Create your custom plugin folder inside the \u201cplugins\u201d folder of your Woo Commerce site.<br \/>\nIn the sample code, we have created a folder \u201ccustom-plugin\u201d.<\/p>\n<p><strong>2.<\/strong>\u00a0Create a new PHP file inside your \u201ccustom-plugin\u201d folder. The name of the file must be same as custom plugin folder. In the sample code, we have created a file \u201ccustom-plugin.php\u201d.<\/p>\n<p><strong>3.<\/strong>\u00a0You need to register the settings of each field of your custom plugin. This step whitelist your plugin setting options (fields) that are used to save the plugin setting data in the wp_options table. Here, I have registered the setting for my custom-plugin as shown below and added that code to the \u201ccustom-plugin.php\u201d file.<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">\/*\r\n* Plugin Name: Custom Plugin\r\n* Description: This plugin is the custom plugin and created by velsof\r\n* Version : 1.0.0\r\n* Author: Velsof\r\n*\/\r\nfunction custom_plugin_register_settings() {\r\n\r\nregister_setting(\u2018custom_plugin_options_group\u2019, \u2018first_field_name\u2019);\r\n\r\nregister_setting(\u2018custom_plugin_options_group\u2019, \u2018second_field_name\u2019);\r\n\r\nregister_setting(\u2018custom_plugin_options_group\u2019, \u2018third_field_name\u2019);\r\n\r\n}\r\nadd_action(\u2018admin_init\u2019, \u2018custom_plugin_register_settings\u2019);<\/pre>\n<p>To learn more about \u201cregister_setting\u201d you can check the document<\/p>\n<p>\u201c<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/register_setting\/\" target=\"_blank\">https:\/\/developer.wordpress.org\/reference\/functions\/register_setting\/<\/a>\u201d<\/p>\n<p><strong>4.<\/strong> In this step, you need to create the options page for your custom plugin and add the option in the submenu of the Word Press setting. In the sample code, we have written the code of options page below and added the same to the \u201ccustom-plugin.php\u201d file.<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">function custom_plugin_setting_page() {\r\n\r\n\/\/ add_options_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = &#039;&#039; )\r\n\r\nadd_options_page(&#039;Custom Plugin&#039;, &#039;Custom Plugin Setting&#039;, &#039;manage_options&#039;, &#039;custom-plugin-setting-url&#039;, &#039;custom_page_html_form&#039;);\r\n\r\n\/\/ custom_page_html_form is the function in which I have written the HTML for my custom plugin form.\r\n}\r\nadd_action(&#039;admin_menu&#039;, &#039;custom_plugin_setting_page&#039;);<\/pre>\n<p>After completing this step you will be able to see the option of your custom plugin in the Word press setting as shown in the image below:<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-518850\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture5.png\" alt=\"add setting for custom plugin in the WordPress setting menu\" width=\"600\" height=\"349\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture5.png 600w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture5-300x175.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><strong>5.<\/strong> In this step, you need to create the form to display the options (fields) in the setting page of the custom plugin. Here, I have created a function \u201ccustom_page_html_form\u201d as shown below and added the same to the \u201ccustom-plugin.php\u201d file.<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">function custom_page_html_form() { ?&gt;\r\n    &lt;div class=&quot;wrap&quot;&gt;\r\n        &lt;h2&gt;Custom Plugin Setting Page Heading&lt;\/h2&gt;\r\n        &lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;\r\n            &lt;?php settings_fields(&#039;custom_plugin_options_group&#039;); ?&gt;\r\n\r\n        &lt;table class=&quot;form-table&quot;&gt;\r\n\r\n            &lt;tr&gt;\r\n                &lt;th&gt;&lt;label for=&quot;first_field_id&quot;&gt;First Field Name:&lt;\/label&gt;&lt;\/th&gt;\r\n\r\n                &lt;td&gt;\r\n&lt;input type = &#039;text&#039; class=&quot;regular-text&quot; id=&quot;first_field_id&quot; name=&quot;first_field_name&quot; value=&quot;&lt;?php echo get_option(&#039;first_field_name&#039;); ?&gt;&quot;&gt;\r\n                &lt;\/td&gt;\r\n            &lt;\/tr&gt;\r\n\r\n            &lt;tr&gt;\r\n                &lt;th&gt;&lt;label for=&quot;second_field_id&quot;&gt;Second Field Name:&lt;\/label&gt;&lt;\/th&gt;\r\n                &lt;td&gt;\r\n&lt;input type = &#039;text&#039; class=&quot;regular-text&quot; id=&quot;second_field_id&quot; name=&quot;second_field_name&quot; value=&quot;&lt;?php echo get_option(&#039;second_field_name&#039;); ?&gt;&quot;&gt;\r\n                &lt;\/td&gt;\r\n            &lt;\/tr&gt;\r\n\r\n            &lt;tr&gt;\r\n                &lt;th&gt;&lt;label for=&quot;third_field_id&quot;&gt;Third Field Name:&lt;\/label&gt;&lt;\/th&gt;\r\n   &lt;td&gt;\r\n&lt;input type = &#039;text&#039; class=&quot;regular-text&quot; id=&quot;third_field_id&quot; name=&quot;third_field_name&quot; value=&quot;&lt;?php echo get_option(&#039;third_field_name&#039;); ?&gt;&quot;&gt;\r\n                &lt;\/td&gt;\r\n            &lt;\/tr&gt;\r\n        &lt;\/table&gt;\r\n\r\n        &lt;?php submit_button(); ?&gt;\r\n\r\n    &lt;\/div&gt;\r\n&lt;?php } ?&gt;<\/pre>\n<p>After completing this step the form of your custom plugin will be created and the data will be saved in the database on clicking the button \u201cSave Changes\u201d as shown below:<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-518869\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture6.png\" alt=\"How to add setting for custom plugin in the WordPress setting menu? \" width=\"561\" height=\"297\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture6.png 561w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture6-300x159.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/a><\/p>\n<p><strong>Note:<\/strong>\u00a0If you get the error \u201coptions page not found\u201d on saving the setting of the custom plugin. Then you need to follow the below steps:<\/p>\n<p>1.Open \u201coptions.php\u201d file (File Location: wp\\wp-admin\\options.php).<\/p>\n<p>2.Add the custom plugin option group in the $whitelist_options array.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">$whitelist_options[&#039;custom_plugin_options_group\u2019] = array(&#039;first_field_name\u2019, \u2018second_field_name\u2019, \u2018third_field_name\u2019);<\/pre>\n<p>You can download the sample code\u00a0<a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/custom-plugin.zip\" target=\"_blank\">here<\/a>.<\/p>\n<h4>Summary<\/h4>\n<p>After reading this document you will be able to add the setting of your custom plugin in the WordPress setting menu.<\/p>\n<p>Knowband also provides the best in class modules for Prestashop, Opencart, Magento, Magento 2, and Woocommerce.<\/p>\n<p>We are providing a No Code Mobile App Solution for Woocommerce that every store needs to have. Know more <a href=\"https:\/\/www.knowband.com\/woocommerce-plugins\/woocommerce-mobile-app\/woocommerce-mobile-app-builder\">here<\/a>.<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/R1DEbm4r8iM\" width=\"660\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Objective of the blog: The objective of this blog is to help you know how the setting of any custom plugin is created. Nowadays, most of the plugins contain settings to allow users to alter the functionality of the plugin according to their choice. In this blog, we are creating the custom plugin for your [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":816782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1111],"tags":[20038,20040,20039],"class_list":["post-518812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-add-plugin-settings","tag-add-setting-for-custom-plugin","tag-wordpress-setting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to add setting for custom plugin in the WordPress setting menu? - Knowband Blog | Ecommerce Modules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add setting for custom plugin in the WordPress setting menu? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Objective of the blog: The objective of this blog is to help you know how the setting of any custom plugin is created. Nowadays, most of the plugins contain settings to allow users to alter the functionality of the plugin according to their choice. In this blog, we are creating the custom plugin for your [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-29T09:03:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-18T08:12:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Main-Banner-WordPress.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Shivam Verma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shivam Verma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/\"},\"author\":{\"name\":\"Shivam Verma\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/e053c57d62fceb4295302b9293e371f6\"},\"headline\":\"How to add setting for custom plugin in the WordPress setting menu?\",\"datePublished\":\"2020-01-29T09:03:39+00:00\",\"dateModified\":\"2022-07-18T08:12:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/\"},\"wordCount\":505,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Main-Banner-WordPress.png\",\"keywords\":[\"Add plugin settings\",\"add setting for custom plugin\",\"WordPress setting\"],\"articleSection\":[\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/\",\"name\":\"How to add setting for custom plugin in the WordPress setting menu? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Main-Banner-WordPress.png\",\"datePublished\":\"2020-01-29T09:03:39+00:00\",\"dateModified\":\"2022-07-18T08:12:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Main-Banner-WordPress.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Main-Banner-WordPress.png\",\"width\":760,\"height\":300,\"caption\":\"How to add setting for custom plugin in the WordPress setting menu?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add setting for custom plugin in the WordPress setting menu?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/e053c57d62fceb4295302b9293e371f6\",\"name\":\"Shivam Verma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/Image_for_blogShivam-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/Image_for_blogShivam-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/Image_for_blogShivam-150x150.jpg\",\"caption\":\"Shivam Verma\"},\"description\":\"Shivam Verma is an experienced software engineer in PHP development and Database design. His area of interest is website development. He likes to be aware of his surroundings and to learn new things by observing others. He believes that by doing this we can learn new things and can also enhance our knowledge everyday. He has started writing technical blogs with a view to help others in studying and learning new things in an easy way.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/author\\\/sverma\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add setting for custom plugin in the WordPress setting menu? - Knowband Blog | Ecommerce Modules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/","og_locale":"en_US","og_type":"article","og_title":"How to add setting for custom plugin in the WordPress setting menu? - Knowband Blog | Ecommerce Modules","og_description":"Objective of the blog: The objective of this blog is to help you know how the setting of any custom plugin is created. Nowadays, most of the plugins contain settings to allow users to alter the functionality of the plugin according to their choice. In this blog, we are creating the custom plugin for your [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2020-01-29T09:03:39+00:00","article_modified_time":"2022-07-18T08:12:20+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Main-Banner-WordPress.png","type":"image\/png"}],"author":"Shivam Verma","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Shivam Verma","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/"},"author":{"name":"Shivam Verma","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/e053c57d62fceb4295302b9293e371f6"},"headline":"How to add setting for custom plugin in the WordPress setting menu?","datePublished":"2020-01-29T09:03:39+00:00","dateModified":"2022-07-18T08:12:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/"},"wordCount":505,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Main-Banner-WordPress.png","keywords":["Add plugin settings","add setting for custom plugin","WordPress setting"],"articleSection":["Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/","url":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/","name":"How to add setting for custom plugin in the WordPress setting menu? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Main-Banner-WordPress.png","datePublished":"2020-01-29T09:03:39+00:00","dateModified":"2022-07-18T08:12:20+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Main-Banner-WordPress.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Main-Banner-WordPress.png","width":760,"height":300,"caption":"How to add setting for custom plugin in the WordPress setting menu?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/tips\/how-to-add-setting-for-custom-plugin-in-the-wordpress-setting-menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to add setting for custom plugin in the WordPress setting menu?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/e053c57d62fceb4295302b9293e371f6","name":"Shivam Verma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/02\/Image_for_blogShivam-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/02\/Image_for_blogShivam-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/02\/Image_for_blogShivam-150x150.jpg","caption":"Shivam Verma"},"description":"Shivam Verma is an experienced software engineer in PHP development and Database design. His area of interest is website development. He likes to be aware of his surroundings and to learn new things by observing others. He believes that by doing this we can learn new things and can also enhance our knowledge everyday. He has started writing technical blogs with a view to help others in studying and learning new things in an easy way.","url":"https:\/\/www.knowband.com\/blog\/author\/sverma\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/518812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=518812"}],"version-history":[{"count":6,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/518812\/revisions"}],"predecessor-version":[{"id":816950,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/518812\/revisions\/816950"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media\/816782"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=518812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=518812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=518812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}