Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp-includes/capabilities.php ›

Funções16
Core User Role & Capabilities API


Function Short description
add_roleAdd 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_blogReturns whether the current user has the specified capability for a given site.
get_roleRetrieve role object.
get_super_adminsRetrieve a list of super admins.
grant_super_adminGrants Super Admin privileges.
is_super_adminDetermine if user is a site admin.
map_meta_capMaps meta capabilities to primitive capabilities.
remove_roleRemove role, if it exists.
revoke_super_adminRevokes Super Admin privileges.
user_canReturns whether a particular user has the specified capability.
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.