[ Index ] |
PHP Cross Reference of BuddyPress |
[Source view] [Print] [Project Stats]
bbPress Roles and Capabilities Wrapping Functions.
File Size: | 348 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
bb_current_user_can($capability) X-Ref |
Whether current user has capability or role. param: string $capability Capability or role name. return: bool since: 0.7.2 |
bb_give_user_default_role( $user ) X-Ref |
Give a user the default role param: BP_User $user User object to give default role to since: 0.7.2 |
bb_init_roles( &$roles ) X-Ref |
Setup all default roles and associate them with capabilities param: BP_Roles $roles Roles object to add default roles to since: 0.7.2 |
bb_map_meta_cap( $caps, $cap, $user_id, $args ) X-Ref |
Map meta capabilities to primitive capabilities. This does not actually compare whether the user ID has the actual capability, just what the capability or capabilities are. Meta capability list value can be 'delete_user', 'edit_user', 'delete_post', 'delete_page', 'edit_post', 'edit_page', 'read_post', or 'read_page'. param: array $caps Previously existing capabilities param: string $cap Capability name. param: int $user_id User ID. return: array Actual capabilities for meta capability. since: 0.7.2 |
Generated: Thu Dec 7 01:01:35 2017 | Cross-referenced by PHPXref 0.7.1 |