How to build custom dashboard widgets in WordPress

You can build your own widgets to your WordPress dashboard. Below is a simple code which will demonstrate this, you need to edit this according to your needs.

 
 
<?php
function your_dashboard_widget() {
?>
<h3>Hello WordPress user!</h3>
<p>Fill this with HTML or PHP.</p>
<?php
};
function add_your_dashboard_widget() {
       wp_add_dashboard_widget( 'your_dashboard_widget', __( 'Widget Title!' ), 'your_dashboard_widget' );
}
      add_action('wp_dashboard_setup', 'add_your_dashboard_widget' );
?>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us