wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/capabilities.php › WordPress File
Functions14
› Core User Role & Capabilities API
Function | Short description |
---|---|
add_role | Add role, if it does not exist. |
author_can | Whether the author of the supplied post has a specific capability. |
current_user_can | Whether the current user has a specific capability. |
current_user_can_for_blog | Whether the current user has a specific capability for a given site. |
get_role | Retrieve role object. |
get_super_admins | Retrieve a list of super admins. |
grant_super_admin | Grants Super Admin privileges. |
is_super_admin | Determine if user is a site admin. |
map_meta_cap | Map meta capabilities to primitive capabilities. |
remove_role | Remove role, if it exists. |
revoke_super_admin | Revokes Super Admin privileges. |
user_can | Whether a particular user has a specific capability. |
wp_maybe_grant_install_languages_cap | Filters the user capabilities to grant the 'install_languages' capability as necessary. |
wp_roles | Retrieves the global WP_Roles instance and instantiates it if necessary. |