Remove and install dashboard widgets

// cleanup dashboard (removing incoming links, plugins, wordpress blog, wordpress news)
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
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_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

// add madwire dashboard widget
function madwire_dashboard_widget_function() {
echo "<p><strong><a href="http://www.madwirewebdesign.com/video/blog-walkthrough/">Watch the Blog Walkthrough Screencast</a></strong></p>";
echo "<p>Hours: 7am-5pm CST (M-F)<br /> Toll Free Phone: 888-872-3734<br /> Local Phone: 970-663-7635<br /> Email: <a href="mailto:[email protected]">[email protected]</a></p>";
echo "<p>Address: 504 West Eisenhower Blvd., Ste 302, Loveland, Colorado 80537</p>";
}
function madwire_add_dashboard_widgets() {
wp_add_dashboard_widget('madwire_dashboard_widget', 'Madwire Media Support', 'madwire_dashboard_widget_function');
}
add_action('wp_dashboard_setup', 'madwire_add_dashboard_widgets' );

0 Comments

You must be logged in to post a comment.