File: bp-forums/core/capabilities.php
Description
_bbp_reinit_dynamic_roles()

This is necessary because in a few places (noted below) WordPress initializes a blog’s roles directly from the database option. When this happens, the $wp_roles global gets flushed, causing a user to magically lose any dynamically assigned roles or capabilities when $current_user in refreshed.

Source: bp-forums/core/capabilities.php:359

bbp_get_dynamic_roles()

Fetch a filtered list of forum roles that the current user is allowed to have.

Source: bp-forums/core/capabilities.php:383

bbp_get_dynamic_role_name()

Gets a translated role name from a role ID

Source: bp-forums/core/capabilities.php:429

bbp_get_blog_roles()

Get the available roles minus Forums’ dynamic roles

Source: bp-forums/core/capabilities.php:271

bbp_add_forums_roles()

Add the Forums roles to the $wp_roles global.

Source: bp-forums/core/capabilities.php:301

bbp_filter_user_roles_option()

Helper function to add filter to option_wp_user_roles

Source: bp-forums/core/capabilities.php:328

bbp_get_caps_for_role()

Returns an array of capabilities based on the role that is being requested.

Source: bp-forums/core/capabilities.php:30

bbp_add_caps()

Adds capabilities to WordPress user roles.

Source: bp-forums/core/capabilities.php:215

bbp_remove_caps()

Removes capabilities from WordPress user roles.

Source: bp-forums/core/capabilities.php:232

bbp_get_wp_roles()

Get the $wp_roles global without needing to declare it everywhere

Source: bp-forums/core/capabilities.php:252