Title: Restrict Comments &amp; Tools
Last modified: August 21, 2016

---

# Restrict Comments & Tools

 *  [iammathews](https://wordpress.org/support/users/iammathews/)
 * (@iammathews)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/restrict-comments-tools/)
 * Hi,
 * When un-checking the Moderate Comments for a certain user, edit-comments.php 
   is still visible in the admin bar and back-end sidebar.
 * I thought hiding this with my own code would work but then realized they could
   manually add edit-comments.php to the URL and they won’t be restricted.
 * Also, the tools.php, there is no real reason for this still being visible, how
   would I hide this and restrict users from these pages.
 * [http://wordpress.org/plugins/user-role-editor/](http://wordpress.org/plugins/user-role-editor/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/restrict-comments-tools/#post-4075365)
 * Hi,
 * Key capability for the comments moderation is the right to edit that post. More
   information on the subject is here:
    [http://www.shinephp.com/limit-comments-moderation/](http://www.shinephp.com/limit-comments-moderation/)
   [http://shinephp.com/limit-comments-moderation-part-2/](http://shinephp.com/limit-comments-moderation-part-2/)
 * I think post below and followed discussion could help you to resolve the problem(
   pay attention on the code allowed to block use of direct URL call):
    [http://shinephp.com/how-to-block-wordpress-admin-menu-item/](http://shinephp.com/how-to-block-wordpress-admin-menu-item/)
 * Here is the reference on WordPress admin menu permissions and structure:
    [http://shinephp.com/wordpress-admin-menu-permissions/](http://shinephp.com/wordpress-admin-menu-permissions/)
 * Look on the “Admin menu editor” plugin. May be you prefer to use it, than hide
   menu items manually.
 * Regards,
    Vladimir.
 *  Thread Starter [iammathews](https://wordpress.org/support/users/iammathews/)
 * (@iammathews)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/restrict-comments-tools/#post-4075408)
 * Hi,
 * Thanks so much for your detailed input. That comment links are an extreme help
   knowing I can restrict the comments of a user, or the comments the user would
   see.
 * I am more at a point where I want to restrict comments access for all users besides
   admin, so using my code to remove/hide an admin menu, I would like to accompany
   it with “You do not have sufficient permissions to access this page.” when going
   to that link – your response just sends the user back.
 * How would I achieve this? The “admin menu editor” plugin is quite nify and will
   work well. Only thing is, I don’t understand why your plugin can’t do this – 
   since I bought your plugin and it’s along the same lines, I am not going to purchase
   another plugin.
 * Regards,
    Yusri
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/restrict-comments-tools/#post-4075410)
 * Hi Yusri,
 * I may help you with code to achieve directly that what you wish. Just wait until
   I return from the holiday trip – September, 18th. We will discuss your task in
   details later, when I will have regular access to the Internet and my developer’s
   desktop.
 * P.S. I do not plan to include “Admin Menu Editor” functionality in User Role 
   Editor plugin, while the author of AME does not come on the User Role Editor 
   territory. It is a question of developers ethics from my point of view. We just
   recommend users to look on the related product of each other, if it could help.
 * Regards,
    Vladimir.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Restrict Comments & Tools’ is closed to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/restrict-comments-tools/#post-4075410)
 * Status: not resolved