Disable standard Widgets

Don’t have the time to add support for all the standard WordPress Widgets to your client’s theme? Disable them instead!

Code Snippet:

<?php
function unregister_default_wp_widgets() {
  unregister_widget('WP_Widget_Calendar');
  unregister_widget('WP_Widget_Search');
  unregister_widget('WP_Widget_Recent_Comments');
}
add_action('widgets_init', 'unregister_default_wp_widgets', 1);
?>

Posted in Admin area