WordPress Tutorial: Uncluttered Widgets Screen

WordPress comes with some great built-in widgets but sometimes it is a bit of nightmare actually seeing which widgets you want to use, so to make things easier just disable the widgets you don't need and you will have a clutter free widgets admin screen.

Simply add the following code to your theme's functions.php file.

function unregister_default_wp_widgets()
{
    unregister_widget('WP_Widget_Text');
    unregister_widget('WP_Widget_Pages');
    unregister_widget('WP_Widget_Calendar');
    unregister_widget('WP_Widget_Archives');
    unregister_widget('WP_Widget_Links');
    unregister_widget('WP_Widget_Meta');
    unregister_widget('WP_Widget_Search');
    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);