Pro Verified

Name

Remove Wordpress Screen Option Items

About

Remove those annoying items in the Wordpress Dashboard

Language

PHP

Rating

Voted: 2 by 2 user(s)

How to Setup Snippet

Add to Code Snippets. If you are not using Elementor, then remove this line: remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal' );

Codevault

WebSquadron

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

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.

History

Last modified:

19/02/2024

Important Note

This snippet has the following status:

Pro Verified

This snippet has been verified by a Code Snippet Pro team member.

Pro Comments:

Remove Wordpress Screen Option Items

 
                    
1function remove_dashboard_widgets() {
2 remove_action( 'welcome_panel', 'wp_welcome_panel' );
3 remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
4 remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' );
5 remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
6 remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
7 remove_meta_box( 'dashboard_site_health', 'dashboard', 'normal' );
8 remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal' );
9}
10add_action( 'wp_dashboard_setup', 'remove_dashboard_widgets' );

2

Featured Snippet

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Wordpress Updates

Added: 8 months ago

Last Updated: 8 months ago

See a list of Updates for Wordpress, Plugins, and Themes in the Dashboard.

WordPress Admin

AI Verified

2

Remove admin nags

Added: 1 year ago

Last Updated: 9 months ago

Custom function to remove admin notices (remember to edit the classes)

WordPress Admin

AI Verified

0

Code Snippets Pro: Trigger Save Upon Enter in Snippet Title Input [SnipSnip.pro]

Added: 7 months ago

Last Updated: 4 months ago

When editing a snippet title, hitting the Enter key will save the snippet.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

29

Remove Unused Javascript

Added: 1 year ago

Last Updated: 1 week ago

Remove Unused Javascript - and improve your Page Speed Insight Score

WooCommerce

Pro Verified

9

Deactivate some WooCommerce Checkout Fields

Added: 1 year ago

Last Updated: 4 months ago

Deactivate some WooCommerce Checkout Fields from showing

Performance

Pro Verified

5

Disable e-icons from Elementor

Added: 1 year ago

Last Updated: 11 months ago

Disable e-icons - and remove the notification from occurring during your Page Speed Insight Check.