Add this to your functions.php file:
function jpb_unregister_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', 'jpb_unregister_widgets' );
This will get rid of all default widgets. If you want to keep a certain widget, remove that line from the function above.
Related Posts:
- How to remove Broken Link Checker widget from admin menu
- Create mobile site with same content just different theme
- Sharing Dynamic Sidebars across Multisite Blogs
- How can I diagnose a slow WordPress admin?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- WP-Admin not working properly at WordPress multisite with subdirectories
- Security in WordPress plugin development
- Hide a theme on list of themes in wp-admin without editing core files
- Difference Between Admin and Super Admin in Database
- wp-admin slow in multisite
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Timeout While Upgrading Network in Multi-site
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- Multisite wp-admin redirect loop
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- How to automatically register widgets on new blog?
- Copy posts from one blog to another in multisite environment
- My subsites accidentally went from one multisite network to another. How do I change it back?
- Redirect loop (only for multisite network admin)
- Manipulate list of themes in wp-admin
- Creating a Post form outside of the Admin
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- How to set Active plugins as the default screen?
- Why can’t I delete original user in multisite? Options for manual removal
- Multisite network admin – URL / redirect error
- Cookie nonce is invalid – Multisite
- Trouble with switch_to_blog()
- WordPress mutisite migration
- Why does the My Site dropdown show only a single domain?
- Super admin access to a forgotten WP instance?
- Iframe being removed only for some users when publishing a page
- WP Multisite with Domain Mapping : Preventing User Access to Dashboard
- 2 website 1 database… Local to online
- Assign default widgets to all sites in a multisite network
- Moving wp-admin folder to a different host in a multisite environment
- Site’s admin created with wpmu_create_blog accessible only on 2nd attempt
- Making a Multisite Dashboard Widget
- Is There A Plugin to Create WP Multisite Installs programatically
- Can’t log in to wp-admin after setting up Multisite
- Infamous admin login redirect
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- WordPress multisite second site admin resulting in too many redirects error
- URLs for (MultiSite) link images are always relative
- Multisite wp-admin redirecting to main wp-admin using NGINX
- Is it better to embed widgets on posts or pages?
- WordPress Multisite: Login to all subsites at once
- How to Add Super Admin for WordPress multi-site
- network admin pages not linked to correctly
- Multisite – cannot remove specific sub-menu its parent menu. All sub-menus disappear
- How to have same admin login for more than one site?
- WP Admin Panel for Multi-site install not loading JavaScript for one Subdomain
- Backend freezing on certain pages of a subsite
- Multilingual multisite > customisable footer across different sites with widgets?
- Admin user getting redirected to /wp-admin/user
- WPMU widget use sitewide
- Pages redirect me to the homepage
- Some widgets on Multisite not showing up in template for particular theme
- Many big issues in the website, WP_Debug not showing
- What could be changing my WP password and blocking plugins from installing?
- Wp-admin wrongly redirecting on multisite
- Unable to change blog language in multisite
- Multisite logged into one wp-admin, move to another sites wp-admin asked to login again
- Memory growth with new additions to WordPress Multisite
- Is there a is_user_logged_in() for multisite?
- Switching MultiSite installation from HTTP to HTTPS
- Is there an easy way to separate themes on network?
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- Removing orphan users in WordPress Multisite
- Sharding BLOGUPLOADDIR
- Hook filter to change wp_upload_dir() path in multisite
- Error 101 after upgrading WordPress
- SSL for mapped subdomains in multisite (no plugins)
- How to add new sites and map a custom domain in WordPress Multisite?
- 301 Redirects for posts, category, pages from original domain to sub-domain of multisite
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- How do I add JavaScript that will execute on all my sites in Multisite?
- Create a network of sites
- Free Google Analytics plugin that works with WordPress in network mode (WPMU)? [closed]
- API for creating blogs on Multisite?
- All subdomains redirecting to mainsite/wp-signup.php after multisite install
- 301’s not working with multisite
- Create a page for a theme only
- How do I get the site url from a Block (within the block editor)
- Multisite – One Site with multiple URLs
- Delete all user’s meta without knowing all the ‘key’
- Stylesheet and JS linking error in WP multisite nested path
- Issue with checked() echoing on to page
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Images uploaded after adding multisite do not get loaded in any domain of the multisite network
- Migrating from domain mapping plugin to native domain mapping
- Define default settings for new sites on multisite network with mu-plugin
- Multisite + wp_mail – Route Via Site Conditionally
- WordPress automatic Login on other page?
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- MU domain mapping without using a plugin
- first load of the page gives 404 error
- WordPress Multisite restict user access
- get_category_link() or get_tag_link() return wrong category/tag base in wordpress multisite
- Multisite subdomain microsite on secondary domain
- WordPress Multisite Domain Mapping Issue: Subsite Domain Redirecting to Primary Domain