File: bp-forums/core/capabilities.php |
Description |
---|---|
bbp_get_dynamic_roles() |
Fetch a filtered list of forum roles that the current user is allowed to have. |
bbp_get_dynamic_role_name() |
Gets a translated role name from a role ID |
_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. |
bbp_get_caps_for_role() |
Returns an array of capabilities based on the role that is being requested. |
bbp_add_caps() |
Adds capabilities to WordPress user roles. |
bbp_remove_caps() |
Removes capabilities from WordPress user roles. |
bbp_get_wp_roles() |
Get the $wp_roles global without needing to declare it everywhere |
bbp_get_blog_roles() |
Get the available roles minus Forums’ dynamic roles |
bbp_add_forums_roles() |
Add the Forums roles to the $wp_roles global. |
bbp_filter_user_roles_option() |
Helper function to add filter to option_wp_user_roles |