How to Hide the Screen Options Dropdown Menu in the Top Right Corner of the WordPress admin dashboard

Last Updated on November 11, 2023 by Mike Kipruto

To hide the screen options dropdown menu in the top right corner of the WordPress admin dashboard, you can add the following code to your theme’s functions.php file or in a custom plugin:

/**
 * How to Hide the Screen Options Dropdown Menu in the top right corner of the WordPress admin dashboard
 * @link https://kipmyk.co.ke/code/how-to-hide-the-screen-options-dropdown-menu-in-the-top-right-corner-of-the-wordpress-admin-dashboard/
 */
add_action('admin_init', 'mk_hide_screen_options');
function mk_hide_screen_options() {
    // Remove the screen options dropdown menu
    add_filter('screen_options_show_screen', '__return_false');
}

This code snippet adds an action hook to the admin_init action, which runs when the admin dashboard is initialized by setting the screen_options_show_screen filter hook to false.