Removing clutter from your WordPress dashboard can streamline your workflow and enhance your user experience. The Screen Options tab, while useful, can sometimes be an unnecessary distraction. Here’s how you can remove screen option items using a simple code snippet.
Prerequisites
Ensure you have the following resources ready and installed:
Remove WordPress Screen Options
- Navigate to
Snippets > Add New
in your WordPress dashboard. - Name your new snippet for easy identification, such as “Remove Screen Options”.
- Copy the code snippet below:
function remove_dashboard_widgets() { remove_action( 'welcome_panel', 'wp_welcome_panel' ); remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); remove_meta_box( 'dashboard_site_health', 'dashboard', 'normal' ); remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal' ); } add_action( 'wp_dashboard_setup', 'remove_dashboard_widgets' );
Source: Code Snippets
- Paste the code into the Code Snippets editor area.
- Save Changes and Activate the snippet.
Note: Before activation, review the code. If you wish to keep certain elements like the Welcome panel, simply remove the corresponding line or comment it out.
Supplementary Resources
Conclusion
With the code snippet activated, some Screen Options items will no longer appear on your WordPress dashboard. This simple yet effective method ensures a more focused and tidy workspace.