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_roleAdds a role, if it does not exist.
author_canReturns whether the author of the supplied post has the specified capability.
current_user_canReturns whether the current user has the specified capability.
current_user_can_for_siteReturns whether the current user has the specified capability for a given site.
get_roleRetrieves role object.
get_super_adminsRetrieves a list of super admins.
grant_super_adminGrants Super Admin privileges.
is_super_adminDetermines whether user is a site admin.
map_meta_capMaps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.
remove_roleRemoves a role, if it exists.
revoke_super_adminRevokes Super Admin privileges.
user_canReturns whether a particular user has the specified capability.
user_can_for_siteReturns whether a particular user has the specified capability for a given site.
wp_maybe_grant_install_languages_capFilters the user capabilities to grant the 'install_languages' capability as necessary.
wp_maybe_grant_resume_extensions_capsFilters the user capabilities to grant the 'resume_plugins' and 'resume_themes' capabilities as necessary.
wp_maybe_grant_site_health_capsFilters the user capabilities to grant the 'view_site_health_checks' capabilities as necessary.
wp_rolesRetrieves the global WP_Roles instance and instantiates it if necessary.