This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add your own dashboard widget | |
function my_custom_dashboard_widgets() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('custom_help_widget','Global Web Developer Inc','custom_dashboard_help'); | |
} | |
function custom_dashboard_help() { | |
echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:[email protected]">here</a>. For WordPress Tutorials visit: <a href="http://www.webdesign.com" target="_blank">WebDesign.com</a></p>'; | |
} | |
add_action('wp_dashboard_setup','my_custom_dashboard_widgets'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add Admin Toolbar items | |
function easy_add_menu_items_to_toolbar() { | |
global $wp_admin_bar; | |
if (!is_super_admin() || !is_admin_bar_showing()) | |
return; | |
$wp_admin_bar->add_menu(array( | |
'id' => 'webdev_links', | |
'title' => __('Awesome WebDev'), | |
'href' => __('http://domain.com'), | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Start remove admin toolbar items | |
function remove_admin_toolbar_links() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wp-logo'); | |
$wp_admin_bar->remove_menu('updates'); | |
$wp_admin_bar->remove_menu('comments'); | |
$wp_admin_bar->remove_menu('builder'); | |
$wp_admin_bar->remove_menu('new-content'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//remove dashboard items | |
function remove_dashboard_widgets() { | |
global $wp_meta_boxes; | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_default_page_screen_metaboxes() { | |
remove_meta_box( 'commentstatusdiv','page','normal' ); // Comments | |
remove_meta_box( 'trackbacksdiv','page','normal' ); // Talkback | |
} | |
add_action('admin_menu','remove_default_page_screen_metaboxes'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function unregister_default_wp_widgets() { | |
unregister_widget('WP_Widget_Calendar'); | |
unregister_widget('WP_Widget_Archives'); | |
unregister_widget('WP_Widget_Categories'); | |
unregister_widget('WP_Widget_Recent_Posts'); | |
unregister_widget('WP_Widget_Recent_Comments'); | |
unregister_widget('WP_Widget_RSS'); | |
unregister_widget('WP_Widget_Tag_Cloud'); | |
} | |
add_action('widgets_init', 'unregister_default_wp_widgets', 1); |