AI Verified

Name

Remove unwanted dashboard widgets

About

This snippet removes unnecessary widgets from the WordPress dashboard, keeping it clean and uncluttered.

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

The snippet will remove specific dashboard widgets. You can adjust the widget identifiers within the unset() function to target different widgets.

Codevault

tunity

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

tunity.be

Snippet Source:

https://tunity.be/

History

Last modified:

26/03/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Remove unwanted dashboard widgets

 
                    
1function remove_dashboard_widgets() {
2 global $wp_meta_boxes;
3 unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
4 unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
5}
6add_action('wp_dashboard_setup', 'remove_dashboard_widgets');

0

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Block Editor: Alt+Shift+Plus to Toggle Block Inserter [SnipSnip.pro]

Added: 7 months ago

Last Updated: 7 months ago

ADMIN ONLY • This code snippet enhances the Gutenberg Block Editor in WordPress by adding a keyboard shortcut. By pressing Alt+Shift+Plus, users can toggle the Block Inserter in the Left Sidebar. This...

WordPress Admin

AI Verified

0

CLOUD Meister: Hide PlugIns from List

Added: 1 year ago

Last Updated: 1 year ago

WordPress Admin

AI Verified

1

Disable Wordpress Admin Bar

Added: 1 year ago

Last Updated: 1 year ago

The WordPress Admin Bar provides handy links to several key functions such as the ability to add new posts and pages, etc. However, if you find no use for it and wish to remove it just activate this s...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

1

Enable SVG Uploads

Added: 1 year ago

Last Updated: 6 months ago

This snippet enables the ability to upload SVG files to the WordPress media library.

WordPress Admin

AI Verified

0

Remove unwanted dashboard widgets

Added: 1 year ago

Last Updated: 1 year ago

This snippet removes unnecessary widgets from the WordPress dashboard, keeping it clean and uncluttered.

Styling

AI Verified

0

Custom Login Logo

Added: 1 year ago

Last Updated: 1 year ago

This snippet allows you to replace the default WordPress login logo with your own custom logo.