I used this Roles and Capabilities for reference.
——–
To remove Comments in moderation (1) for all users except Administrator:
Open: wp-admin/index.php
Find: `<?php if ( $numcomments ) : ?>
<p><?php echo sprintf(__(‘Comments in moderation (%s) »’), number_format_i18n($numcomments) ); ?></p>
<?php endif; ?>`
Change To: `<?php if ( current_user_can(‘import’) ) { ?> <?php if ( $numcomments ) : ?>
<p><?php echo sprintf(__(‘Comments in moderation (%s)’), number_format_i18n($numcomments) ); ?></p>
<?php endif; ?><?php } ?>`
Save & Close
I added: <?php if ( current_user_can(‘import’) ) { ?> at the beginning and <?php } ?> at the end.
——–
To show only Dashboard | Write | Profile for everybody except Administrator:
Open: wp-admin/menu.php
Find: `if (strpos($_SERVER[‘REQUEST_URI’], ‘edit-pages.php’) !== false)
$menu[5] = array(__(‘Write’), ‘edit_pages’, ‘page-new.php’);
else
$menu[5] = array(__(‘Write’), ‘edit_posts’, ‘post-new.php’);
if (strpos($_SERVER[‘REQUEST_URI’], ‘page-new.php’) !== false)
$menu[10] = array(__(‘Manage’), ‘edit_pages’, ‘edit-pages.php’);
else
$menu[10] = array(__(‘Manage’), ‘edit_posts’, ‘edit.php’);
$menu[15] = array(__(‘Comments’), ‘edit_posts’, ‘edit-comments.php’);`
Change To: `if (strpos($_SERVER[‘REQUEST_URI’], ‘edit-pages.php’) !== false)
$menu[5] = array(__(‘Write’), ‘edit_pages’, ‘page-new.php’);
else
$menu[5] = array(__(‘Write’), ‘edit_posts’, ‘post-new.php’);
if ( current_user_can(‘import’) )
if (strpos($_SERVER[‘REQUEST_URI’], ‘page-new.php’) !== false)
$menu[10] = array(__(‘Manage’), ‘edit_pages’, ‘edit-pages.php’);
else
$menu[10] = array(__(‘Manage’), ‘edit_posts’, ‘edit.php’);
if ( current_user_can(‘import’) )
$menu[15] = array(__(‘Comments’), ‘edit_posts’, ‘edit-comments.php’);`
Save & Close
I added: if ( current_user_can(‘import’) ) before and after the Manage commands.
——–
You can change ‘import’ to something lower if you want someone lower than an Administator to be able to view.