Roles and Capabilities (category)
| add_role() | Add a new role to WordPress. |
| author_can() | Checks whether the author of the supplied post has a specific capability. |
| current_user_can() | Whether the current user has a specific capability. |
| get_role() | Retrieve an object with the capabilities of the specified role. |
| is_super_admin() | Determines whether the user is a super administrator (for multisites). |
| map_meta_cap() | Translates the given meta-capability into a primitive capability so that the user's access can then be checked. |
| remove_role() | Removes a role from WordPress. |
| user_can() | Checks whether a specified user has a specified capability. |
| wp_roles() | Retrieves the global variable $wp_roles; if it is not defined, writes an instance of the WP_Roles class into it. |
| WP_Roles::add_cap() | Adds or removes a capability for the specified role. |
| WP_User::add_cap() | Adds or removes the right (ability) for the specified user. |