Horje
How to Customize the Dashboard
  • Customize the Dashboard
  • Remove these dashboard widgets.
  • Add a custom widget called 'Help and Support'
  • This is the content for your custom widget

 


Customize the Dashboard

Just copy and paste following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php in the most below.
Example: PHP
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');

function my_custom_dashboard_widgets() {
   global $wp_meta_boxes;

Remove these dashboard widgets.

Example: PHP
   unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
   unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
   unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);

Add a custom widget called 'Help and Support'

Example: PHP
 wp_add_dashboard_widget('custom_help_widget', 'Help and Support', 'custom_dashboard_help');
}

This is the content for your custom widget

 function custom_dashboard_help() {
    echo '<p>Lorum ipsum delor sit amet et nunc</p>';
}





Category:
Web Tutorial
Sub Category:
Wordpress Dashboard Shortcode
Uploaded by:
Admin