groups

name language licence
Adding Bundles Other Other
C Starter C Other
Java Starter Java Other
Customizing the Dashboard Widgets PHP Other
Fonts PHP Other
CSS Buttons CSS Other
Overwrite Post Titles Easily PHP Other
Add Multiple Sidebars PHP Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 >



language: PHP
licence: Other

Customizing the Dashboard Widgets

options: view full snippetsend to code collector
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');

function my_custom_dashboard_widgets() {
   global $wp_meta_boxes;

   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']);

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

function custom_dashboard_help() {
   echo '<p>Welcome to your custom theme! Need help? Contact the developer <a href="http://mytemplates.com">here</a>.<a href="”http://mytemplates.com”"></a></p>';
}
	
(Continues...)