Last active
September 28, 2016 06:36
-
-
Save saroarhossain57/4ec440ee6dc14ddc834db2b5f5b628a0 to your computer and use it in GitHub Desktop.
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 remove_default_widgets() { | |
unregister_widget('widget_class_name'); | |
unregister_widget('another_class_name'); | |
} | |
add_action( 'widgets_init', 'remove_default_widgets' ); | |
The class names of the all widget is here | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment