Forums - Capabilities - How to add capabilities to User Role Editor

I would like to add forum-related capabilities (e.g. delete forums posts) to a specific role in User Role Editor (e.g. 'moderator'). How can I find these capabilities in Forums?


  • Vaughan

    Hi chris,

    Hope you're well?

    Currently there isn't any capabilities for this in the plugin, the user has to have the manage_options capability which is an admin capability.

    To change this, you will need to edit the plugin code directly.

    I haven't tested this, but you could try the following

    Open forums.php

    Find the following (around line 706)

    if(current_user_can('manage_options')) {

    change manage_options to a capability that your moderator & above has, I don't know the capabilities of your moderator role, so I can't tell you exactly, but with the default user roles

    For instance, if you only want editors or higher to be able to delete posts, then change manage_options to something like 'delete_others_posts'

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.