How to Create Dashboard Widgets in WordPress

Prem Tiwari - - WordPress, WordPress Beginners, WordPress Snippets

In this tutorial i will let you know very interesting things with you, which will help you to create custom dashboard widgets in wordpress. If you want to display some information related to your website on your dashboard so that you don’t need to go in other menu option.

If you create a custom wordpress widgets and display that information on that. There are two ways to do this first is you can simply edit your functions.php file and add below snippets at the end of the file.

Create Custom Dashboard widgets Plugin

If don’t want to add above code in your functions.php file, you can create a custom plugin for that. Lets start to create custom plugin. Go to the wp-contents => Plugins and create a folder named “custom-dashboard-widgets”. create index.php file and add the header information to describe plugin.

Add a valid PHP code with below header comment look like this:

After the above code add below code, below code will create a custom widget with sample messages.

After creating plugin login to your website’s admin panel and activate plugin via Plugins menu. Now navigate to the dashboard there you will see the below outputs.

Custom dashboard widgets

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.