| [ Root ] [ Search ] [ Index ] |
PHP Cross Reference of bbPress TrunkProvided by Yoast |
[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 |
| 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 |
| 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 |
| 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. |
| Generated: Mon Nov 15 04:45:27 2010 | Cross-referenced by PHPXref 0.7 |