bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Administrator Recount

(5 posts)
  • Started 1 month ago by citizenkeith
  • Latest reply from citizenkeith
  • This topic is not resolved
  1. citizenkeith
    Member

    Is there a way to allow an administrator to access Recount in the Admin panel?

    Posted 1 month ago #
  2. It's kinda (good) crazy but there's actually a role key for "recount".

    update: you can make a plugin to give recount access - it will only work for those that can access admin panel

    make this into a plugin:

    <?php
    /*
    Plugin Name: Add Extra Caps
    */
    function add_extra_caps($caps) {
    $caps['recount'] =__('Access the recount administration panel');
    return $caps;
    }
    add_filter( 'get_assignable_caps', 'add_extra_caps');
    ?>

    Install and activate it, edit their profile and check the ability for them. Then they should be able to access it.

    You don't even need to keep the plugin running after that, it can be deactivated/deleted until you want to take away the ability.

    Posted 1 month ago #
  3. citizenkeith
    Member

    Why is it called "Add Extra Caps"?

    Posted 1 day ago #
  4. Add extra capabilities?

    Posted 1 day ago #
  5. citizenkeith
    Member

    AH! Makes sense. The reason I asked is because it wasn't working and I thought there may have been some sort of error... but I just re-uploaded the file into the plugins directory, and it's working fine now.

    Posted 1 day ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.