wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/capabilities.php › WordPress File
Functions17
› Core User Role & Capabilities API
Function | Short description |
---|---|
add_role | Adds a role, if it does not exist. |
author_can | Returns whether the author of the supplied post has the specified capability. |
current_user_can | Returns whether the current user has the specified capability. |
current_user_can_for_site | Returns whether the current user has the specified capability for a given site. |
get_role | Retrieves role object. |
get_super_admins | Retrieves a list of super admins. |
grant_super_admin | Grants Super Admin privileges. |
is_super_admin | Determines whether user is a site admin. |
map_meta_cap | Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked. |
remove_role | Removes a role, if it exists. |
revoke_super_admin | Revokes Super Admin privileges. |
user_can | Returns whether a particular user has the specified capability. |
user_can_for_site | Returns whether a particular user has the specified capability for a given site. |
wp_maybe_grant_install_languages_cap | Filters the user capabilities to grant the 'install_languages' capability as necessary. |
wp_maybe_grant_resume_extensions_caps | Filters the user capabilities to grant the 'resume_plugins' and 'resume_themes' capabilities as necessary. |
wp_maybe_grant_site_health_caps | Filters the user capabilities to grant the 'view_site_health_checks' capabilities as necessary. |
wp_roles | Retrieves the global WP_Roles instance and instantiates it if necessary. |