'hide_screen_options', 'title' => 'Hide Screen Options tab', 'desc' => 'Remove the Screen Options tab for users who are not administrators', 'icon' => 'x', 'risk' => 'safe', 'level' => 'beginner', 'audience' => 'agency', 'priority' => 6, 'benefit' => 'Stops non-administrators from hiding columns and boxes through Screen Options by accident. Administrators still see it.', 'help' => 'Screen Options lets users show or hide columns and boxes on admin screens. This removes the tab for users without the manage_options capability (normally everyone except administrators).', 'before' => 'Screen Options tab available to all users', 'after' => 'Hidden for non-administrators.', 'callback' => function () { add_filter( 'screen_options_show_screen', function ( $show ) { return current_user_can( 'manage_options' ) ? $show : false; } );}, );