WordPress.org

Support

Support » Plugins and Hacks » Remove link to comments in dashboard for non-administrators

Remove link to comments in dashboard for non-administrators

  • I use WordPress with children who are contributors on the blog. When they are logged in they can see unmoderated comments via their dashboards. Is there a way of removing the comment link in the dashboard for all but the administrator?

Viewing 4 replies - 1 through 4 (of 4 total)
  • luckdragon
    Member

    @luckdragon

    do you mean removing it off both the admin menu and the dashboard? (so there is no link to comments at all)?

    I’ve hidden comments using screen options but want to remove the Comments menu item from contributors’ dashboards so that they can’t see unmoderated comments.

    luckdragon
    Member

    @luckdragon

    from the “right now” box, correct?

    luckdragon
    Member

    @luckdragon

    in your theme’s functions.php put the code located below:

    http://pastebin.com/BrWs1Tmy

    all you have to do then is change “ishkibbibble” to whatever username you want to have access to everything

    basically, what it does, is if the user isn’t the one defined, it removes the “right now” box, then creates a new one with all of the same information, excluding the “discussion” table.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove link to comments in dashboard for non-administrators’ is closed to new replies.