{"id":3713,"date":"2016-02-12T13:51:00","date_gmt":"2016-02-12T13:51:00","guid":{"rendered":"https:\/\/purelysupp.com\/wordpress\/?p=3713"},"modified":"2022-10-17T15:20:43","modified_gmt":"2022-10-17T15:20:43","slug":"add-personalized-wordpress-dashboard-widgets","status":"publish","type":"post","link":"https:\/\/purelysupp.com\/wordpress\/code-snippets\/add-personalized-wordpress-dashboard-widgets\/","title":{"rendered":"\u00a0Add Personalized WordPress Dashboard Widgets"},"content":{"rendered":"\n<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin and then modify it with your message.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Create the function to output the contents of our Dashboard Widget\nfunction example_dashboard_widget_function() {\n\t\/\/ Display whatever it is you want to show\n\techo \"Hello World, I'm a great Dashboard Widget\";\n} \n \n\/\/ Create the function use in the action hook\nfunction example_add_dashboard_widgets() {\n\twp_add_dashboard_widget('example_dashboard_widget', 'Example Dashboard Widget', 'example_dashboard_widget_function');\n}\n\/\/ Hoook into the 'wp_dashboard_setup' action to register our other functions\nadd_action('wp_dashboard_setup', 'example_add_dashboard_widgets' );<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin and then modify it with your message.<\/p>\n","protected":false},"author":1,"featured_media":3547,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","iawp_total_views":3,"wds_primary_category":56,"footnotes":""},"categories":[56,86],"tags":[110,247,83,246,231,84],"class_list":{"0":"post-3713","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-code-snippets","8":"category-user-interface","9":"tag-code","10":"tag-dashboard","11":"tag-layout","12":"tag-user-interface","13":"tag-widgets","14":"tag-wp-core","15":"entry"},"featured_image_src":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2018\/09\/code-snippits-600x400.jpg","featured_image_src_square":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2018\/09\/code-snippits-600x515.jpg","author_info":{"display_name":"Jack Alltrade","author_link":"https:\/\/purelysupp.com\/wordpress\/author\/jacka11trade\/"},"_links":{"self":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3713"}],"version-history":[{"count":2,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3713\/revisions"}],"predecessor-version":[{"id":10744,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3713\/revisions\/10744"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media\/3547"}],"wp:attachment":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}