Skip to content

Instantly share code, notes, and snippets.

@arod2634
Created September 21, 2012 19:46
Show Gist options
  • Save arod2634/3763480 to your computer and use it in GitHub Desktop.
Save arod2634/3763480 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