November 8, 2023

Remove WordPress Screen Options with Code Snippets

Play Video

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

  1. Navigate to Snippets > Add New in your WordPress dashboard.
  2. Name your new snippet for easy identification, such as “Remove Screen Options”.
  3. 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

  4. Paste the code into the Code Snippets editor area.
    Remove Screen Options Code Snippet
  5. Save Changes and Activate the snippet.
    Remove Screen Options Outcome

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.

Required Resources

Code Snippets Logo
Free Options
Credit to Web Squadron
Web Squadron is a popular YouTube channel dedicated to providing informative tutorials, tips, and insights on web development and design. With a strong focus on WordPress and website builders like Bricks Builder, the channel aims to help users of all skill levels, from beginners to advanced developers, create and optimize their websites. By offering easy-to-understand, step-by-step guidance, Web Squadron provides practical and valuable content.
Visit
Remove WordPress Screen Options with Code Snippets
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Menu
Give Feedback
Describe your feedback *
Rate Helwp
Share
Facebook
Twitter
LinkedIn
Reddit
Email
WhatsApp
Telegram
Pocket
Report
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.