Created
September 26, 2013 13:37
-
-
Save rsharrer/6714296 to your computer and use it in GitHub Desktop.
Get rid of widgets that have to do with blogging.
This file contains 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment