Skip to content

Instantly share code, notes, and snippets.

@edheltzel
Forked from arod2634/custom-wp-widgets.php
Created October 22, 2012 23:56
Show Gist options
  • Save edheltzel/3935646 to your computer and use it in GitHub Desktop.
Save edheltzel/3935646 to your computer and use it in GitHub Desktop.
Customize Wordpress Theme Widgets
<?php
/*
* Remove any unwanted widgets...
*
* WP_Widget_Pages = Pages Widget
* WP_Widget_Calendar = Calendar Widget
* WP_Widget_Archives = Archives Widget
* WP_Widget_Links = Links Widget
* WP_Widget_Meta = Meta Widget
* WP_Widget_Search = Search Widget
* WP_Widget_Text = Text Widget
* WP_Widget_Categories = Categories Widget
* WP_Widget_Recent_Posts = Recent Posts Widget
* WP_Widget_Recent_Comments = Recent Comments Widget
* WP_Widget_RSS = RSS Widget
* WP_Widget_Tag_Cloud = Tag Cloud Widget
* WP_Nav_Menu_Widget = Menus Widget
*
*/
function remove_some_wp_widgets(){
unregister_widget('WP_Widget_Meta');
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Recent_Comments');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment