Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    Thanks for the feedback.

    To hide screen options link:

    add_action( 'admin_head' , 'hide_screen_options');
    
    function hide_screen_options() {
    
        if (current_user_can('administrator')) {
            return;
        }
    
        add_filter('screen_options_show_screen', '__return_false');
    }
    // end of hide_screen_options()

    To hide ‘Help’ link try this:

    function hide_help() {
        echo '<style type="text/css">
                #contextual-help-link-wrap { display: none !important; }
        </style>';
    }
    add_action('admin_head', 'hide_help');

    I would like to remark that this approach can interfere with Ajax scripts from within the Dashboard. See, e.g. Ajax in Plugins.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do i hide Screen Options and Help Menu from the main dashboard?’ is closed to new replies.