function wpsites_remove_default_widgets() {
unregister_widget('WP_Widget_Pages');
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Archives');
unregister_widget('WP_Widget_Links');
unregister_widget('WP_Widget_Meta');
unregister_widget('WP_Widget_Search');
unregister_widget('WP_Widget_Text');
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');
unregister_widget('WP_Nav_Menu_Widget');
}
add_action('widgets_init', 'wpsites_remove_default_widgets', 11);
Add this in your functions file or a site specific plugin.
Uses unregister widget
Related Posts:
- Get a list of all Widgets registered in WordPress admin widgets-area
- Indexes of widgets instances starts with ‘2’ in ‘wp_options’ table
- How to override the wordpress default widget markup
- link wordpress and stackoverflow
- Widget with random posts from a blog for external sites
- How to use stack flair on my site?
- Trigger Submit Event when Widget is added to Sidebar
- Ask user permission when activating a plugin
- Why wordpress popular post widget shows Undefined index?
- List sidebars on a page
- How to enable / use new video / audio / images widgets in WordPress 4.8?
- How do i export the HTML from text widgets?
- Searching for a better Twitter widget
- Latest/Recent posts widget title link
- the_widget() and widget’s ID
- Widgets not expanding on wordpress 3.3 widget dashbord
- How to put Stack Exchange Flair as widget?
- Removing default theme widgets
- Image Upload Widget Issue
- Wp Customizer event for when a new widget has been added
- wp_register_sidebar_widget() disappered my Widgets submenu – what am I doing wrong?
- Display single widget
- Customizing wordpress default widgets?
- How to make this change without changing the core? [duplicate]
- Add pagination to listing plugin
- How to extend WP_Widget_Media
- Drafts widget for admin page
- Global $wpdb is not showing correct data with function call
- Text widget doesn’t save the content
- Post ID displayed instead of title [closed]
- Color picker in widget appears twice when added via the Customizer
- Hide widget (and white space) on specific resolution [closed]
- Adding Widgets to Draft Pages
- Create an extra Widget Areas in WordPress TwentyTwelve
- How do I pass the id of my widget to javascript in the form function?
- Widget – link to page rather than absolute url
- Programmatically add widgets to sidebars
- Are widgets meant to be used outside of sidebars?
- Is there a WordPress widget for my webpage?
- Validating widget’s configuration data on Admin page
- FTP Widget Location
- Turn off “This is the Primary Sidebar Widget Area” message
- Inserting Read More Tag in Widget
- Adding a WordPress Widget to a settings page
- Display posts from category in post content?
- Is there any tab widget plugin supporting third party widgets? [closed]
- Add footer widgets
- Widgets in WP 4.3 disappearing – How to fix?
- Making jQuery .change() event persistent after widget save
- Widget background images missing on second blog excerpt page
- How should I add a “widget” like element?
- Custom CSS for a particular text/html widget in WordPress
- Removing side bar widgets from GovPress theme
- What conditional to use for dynamic sidebar check?
- How to test if the widgetized area has any widgets?
- Saving widget gets an undefined variable
- Trouble accessing a multidimensional array to add classes to default WordPress widgets
- Distinguish between different widgets of the same type
- links to Media Library content in sidebar per page
- Why is registering a sidebar for each page causing my sidebars to reset?
- widgets in footer?
- Can you hide a widget based on its content?
- Quick Draft widget in weird place on dashboard after being re-added
- How can I remove WordPress element IDs and Class names in the HTML?
- Remove widgets on mobile front page without affecting desktop
- Widget display nothing
- How can I have sidebar widgets on Twenty Seventeen theme on all pages?
- Collapsible widgets [closed]
- Widget settings disappear after refresh
- How to display author meta in a sidebar widget
- Is it ok not to set widget in the main page of a one page WordPress Theme?
- How to get widget content in WordPress based on it’s ID?
- Recent Posts Widget URL / Domain change
- New Custom Widget Call a Different Widget Function
- Loading scripts only if a particular shortcode or widget is present
- How to change text of a widget depend on condition?
- Custom php Widget keeps disappearing from the front end
- widget exclude post by custom field
- How to optimize performance without transient?
- Display widget outside sidebar?
- if is within sidebar [duplicate]
- Diplaying widgets causes responsive slider to not show up
- Modify the siderbar footer
- How to show a feed that requires user/pass within a sidebar widget?
- How to limit characters in Academica featured posts widget?
- My blog has a design issue.
- Call sidebar from a template
- Putting a wordpress custom post into a widget
- Multiple widgets in wordpress
- Passing widget options to external script
- twenty eleven single.php
- Correct way to add a block element to sidebar layout
- Jetpack ‘Blog Subscription’ widget doesn’t add emails to
- How can I add multiple content-editable blocks without a plug-in?
- how to enable full width page template in woo theme memorable?
- Can’t remove a widget from admin
- Add a twitter feed to my WordPress website
- Using AJAX in a Widget to Sort items [closed]
- class WP_Widget – Different dashboard preview for custom widget
- How to tell if a dynamic sidebar is being displayed on page?