{"id":7004,"date":"2020-04-25T17:21:39","date_gmt":"2020-04-25T17:21:39","guid":{"rendered":"https:\/\/expertwebtechnologies.com\/?p=7004"},"modified":"2025-01-07T13:23:38","modified_gmt":"2025-01-07T13:23:38","slug":"add-custom-dashboard-widgets-in-wordpress-2","status":"publish","type":"post","link":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/","title":{"rendered":"Add Custom Dashboard Widgets in WordPress."},"content":{"rendered":"\n<h1>Add Custom Dashboard Widgets in WordPress.<\/h1>\n<div>\n<h3>How To Add New Custom Dashboard Widgets in WordPress?<\/h3>\n<p>There are many of new themes coming out for WordPress every day, but none of them seems to utilize this feature for providing useful information and links for client.<br>\nWordPress developers should add custom dashboard widget with support information when creating custom themes for clients.<\/p>\n<p>these can be help information or may be support links of developer.<\/p>\n<p>For adding Custom Dashboard Widgets in WordPress we will use one hook and one WordPress function.<\/p>\n<ol>\n<li><b>wp_dashboard_setup<\/b> hook<\/li>\n<li><b>wp_add_dashboard_widget<\/b> function<\/li>\n<\/ol>\n<h4>About &#8220;wp_add_dashboard_widget&#8221;<\/h4>\n<pre class=\" language-php\"><code class=\" language-php\">\n<span class=\"snip function\">wp_add_dashboard_widget<\/span>( <span class=\"snip keyword\">string<\/span> $widget_id, <span class=\"snip keyword\">string<\/span> $widget_name, <span class=\"snip keyword\">callable<\/span> $callback, <span class=\"snip keyword\">callable<\/span> $control_callback = null, <span class=\"snip keyword\">array<\/span> $callback_args = null )\n<\/code><\/pre>\n<h4>Parameters<\/h4>\n<p><b>$widget_id<\/b><br>\n(string) (Required) Widget ID (used in the &#8216;id&#8217; attribute for the widget).<br>\n<b>$widget_name<\/b><br>\n(string) (Required) Title of the widget.<br>\n<b>$callback<\/b><br>\n(callable) (Required) Function that fills the widget with the desired content. The function should echo its output.<br>\n<b>$control_callback<\/b><br>\n(callable) (Optional) Function that outputs controls for the widget.<br>\nDefault value: null<br>\n<b>$callback_args<\/b><br>\n(array) (Optional) Data that should be set as the $args property of the widget array (which is the second parameter passed to your callback).<\/p>\n<p><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_add_dashboard_widget\/\" target=\"blank\" rel=\"noopener noreferrer\">Documentation <\/a><br>\nYou can add one by pasting the following code to your thems function.php<\/p>\n<pre class=\" language-php\"><code class=\" language-php\"><span class=\"snip keyword\">function<\/span> <span class=\"snip function\">CustomDashboardWidgets<\/span>() {\n&nbsp;&nbsp;<span class=\"snip keyword\">global<\/span> $wp_meta_boxes; \n&nbsp;&nbsp;<span class=\"snip function\">wp_add_dashboard_widget<\/span>(<span class=\"snip string\">'CustomHelpWidget'<\/span>,<span class=\"snip string\">'Custom Help Dashboard'<\/span>,<span class=\"snip string\">'CustomDashboardHelp'<\/span>);\n} \n<span class=\"snip keyword\">function<\/span> <span class=\"snip function\">CustomDashboardHelp<\/span>() {\n&nbsp;&nbsp;echo 'My First Custom Dashboard Widgets';\n}\n<span class=\"snip function\">add_action<\/span>(<span class=\"snip string\">'wp_dashboard_setup'<\/span>,<span class=\"snip string\">'CustomDashboardWidgets'<\/span>); \n<\/code><\/pre>\n<figure><img decoding=\"async\" src=\"https:\/\/expertwebtechnologies.com\/blogs\/wp-content\/uploads\/2020\/04\/widget.png\" alt=\"null\"><\/figure><p><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Add Custom Dashboard Widgets in WordPress. How To Add New Custom Dashboard Widgets in WordPress? There are many of new themes coming out for WordPress every day, but none of them seems to utilize this feature for providing useful information and links for client. WordPress developers should add custom dashboard widget with support information when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8674,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,36],"tags":[],"class_list":["post-7004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hooks","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Add Custom Dashboard Widgets in WordPress. - EoXys IT<\/title>\n<meta name=\"description\" content=\"Learn how to add custom dashboard widgets in WordPress. Enhance your site\u2019s admin area with useful and personalized widgets for easy access to important information.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Custom Dashboard Widgets in WordPress. - EoXys IT\" \/>\n<meta property=\"og:description\" content=\"Learn how to add custom dashboard widgets in WordPress. Enhance your site\u2019s admin area with useful and personalized widgets for easy access to important information.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\" \/>\n<meta property=\"og:site_name\" content=\"EoXys IT\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-25T17:21:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T13:23:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"430\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Shiv kumawat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shiv kumawat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\"},\"author\":{\"name\":\"Shiv kumawat\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/bb3a08e4beef8ffdfe8f10bca106c76a\"},\"headline\":\"Add Custom Dashboard Widgets in WordPress.\",\"datePublished\":\"2020-04-25T17:21:39+00:00\",\"dateModified\":\"2025-01-07T13:23:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\"},\"wordCount\":204,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png\",\"articleSection\":[\"Hooks\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\",\"url\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\",\"name\":\"Add Custom Dashboard Widgets in WordPress. - EoXys IT\",\"isPartOf\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png\",\"datePublished\":\"2020-04-25T17:21:39+00:00\",\"dateModified\":\"2025-01-07T13:23:38+00:00\",\"author\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/bb3a08e4beef8ffdfe8f10bca106c76a\"},\"description\":\"Learn how to add custom dashboard widgets in WordPress. Enhance your site\u2019s admin area with useful and personalized widgets for easy access to important information.\",\"breadcrumb\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage\",\"url\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png\",\"contentUrl\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png\",\"width\":768,\"height\":430,\"caption\":\"Code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eoxysit.com\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Custom Dashboard Widgets in WordPress.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#website\",\"url\":\"https:\/\/eoxysit.com\/blogs\/\",\"name\":\"EoXys IT\",\"description\":\"Digitise your business\",\"alternateName\":\"Eoxys It\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eoxysit.com\/blogs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/bb3a08e4beef8ffdfe8f10bca106c76a\",\"name\":\"Shiv kumawat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png\",\"contentUrl\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png\",\"caption\":\"Shiv kumawat\"},\"description\":\"\\\"Shiv kumawat is the Executive Director and CEO of Eoxys It Solution LLP and the strategic mind behind the company\\\"s growth. His expertise in operational efficiency and team leadership empowers his colleagues to excel and innovate.\u201d\",\"sameAs\":[\"https:\/\/eoxysit.com\/\"],\"url\":\"https:\/\/eoxysit.com\/blogs\/author\/shivkumawat1985\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Custom Dashboard Widgets in WordPress. - EoXys IT","description":"Learn how to add custom dashboard widgets in WordPress. Enhance your site\u2019s admin area with useful and personalized widgets for easy access to important information.","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:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/","og_locale":"en_US","og_type":"article","og_title":"Add Custom Dashboard Widgets in WordPress. - EoXys IT","og_description":"Learn how to add custom dashboard widgets in WordPress. Enhance your site\u2019s admin area with useful and personalized widgets for easy access to important information.","og_url":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/","og_site_name":"EoXys IT","article_published_time":"2020-04-25T17:21:39+00:00","article_modified_time":"2025-01-07T13:23:38+00:00","og_image":[{"width":768,"height":430,"url":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png","type":"image\/png"}],"author":"Shiv kumawat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shiv kumawat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#article","isPartOf":{"@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/"},"author":{"name":"Shiv kumawat","@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/bb3a08e4beef8ffdfe8f10bca106c76a"},"headline":"Add Custom Dashboard Widgets in WordPress.","datePublished":"2020-04-25T17:21:39+00:00","dateModified":"2025-01-07T13:23:38+00:00","mainEntityOfPage":{"@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/"},"wordCount":204,"commentCount":0,"image":{"@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage"},"thumbnailUrl":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png","articleSection":["Hooks","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/","url":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/","name":"Add Custom Dashboard Widgets in WordPress. - EoXys IT","isPartOf":{"@id":"https:\/\/eoxysit.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage"},"image":{"@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage"},"thumbnailUrl":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png","datePublished":"2020-04-25T17:21:39+00:00","dateModified":"2025-01-07T13:23:38+00:00","author":{"@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/bb3a08e4beef8ffdfe8f10bca106c76a"},"description":"Learn how to add custom dashboard widgets in WordPress. Enhance your site\u2019s admin area with useful and personalized widgets for easy access to important information.","breadcrumb":{"@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#primaryimage","url":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png","contentUrl":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2021\/06\/woocommerce-products-custom-fields.png","width":768,"height":430,"caption":"Code"},{"@type":"BreadcrumbList","@id":"https:\/\/eoxysit.com\/blogs\/add-custom-dashboard-widgets-in-wordpress-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eoxysit.com\/blogs\/"},{"@type":"ListItem","position":2,"name":"Add Custom Dashboard Widgets in WordPress."}]},{"@type":"WebSite","@id":"https:\/\/eoxysit.com\/blogs\/#website","url":"https:\/\/eoxysit.com\/blogs\/","name":"EoXys IT","description":"Digitise your business","alternateName":"Eoxys It","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eoxysit.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/bb3a08e4beef8ffdfe8f10bca106c76a","name":"Shiv kumawat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png","contentUrl":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png","caption":"Shiv kumawat"},"description":"\"Shiv kumawat is the Executive Director and CEO of Eoxys It Solution LLP and the strategic mind behind the company\"s growth. His expertise in operational efficiency and team leadership empowers his colleagues to excel and innovate.\u201d","sameAs":["https:\/\/eoxysit.com\/"],"url":"https:\/\/eoxysit.com\/blogs\/author\/shivkumawat1985\/"}]}},"_links":{"self":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/posts\/7004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/comments?post=7004"}],"version-history":[{"count":0,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/posts\/7004\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/media\/8674"}],"wp:attachment":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/media?parent=7004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/categories?post=7004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/tags?post=7004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}