WordPress.org

Ready to get started?Download WordPress

Forums

Remove link to comments in dashboard for non-administrators (5 posts)

  1. nikkidev
    Member
    Posted 2 years ago #

    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?

  2. luckdragon
    Member
    Posted 2 years ago #

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

  3. nikkidev
    Member
    Posted 2 years ago #

    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.

  4. luckdragon
    Member
    Posted 2 years ago #

    from the "right now" box, correct?

  5. luckdragon
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.