File: wp-includes/capabilities.php
-
Filters the user capabilities to grant the ‘view_site_health_checks’ capabilities as necessary.
-
Filters the user capabilities to grant the ‘resume_plugins’ and ‘resume_themes’ capabilities as necessary.
-
Filters whether the user is allowed to edit a specific meta key of a specific object type and subtype.
-
Filters whether the user is allowed to edit meta for specific object types/subtypes.
-
Filters the user capabilities to grant the ‘install_languages’ capability as necessary.
-
Filters whether the user is allowed to add post meta to a post of a given type.
-
Filters whether the user is allowed to edit a specific meta key of a specific object type.
-
Filters whether the user is allowed to add post meta to a post of a given type.
-
functionwp_roles()
Retrieves the global WP_Roles instance and instantiates it if necessary.
-
functiongrant_super_admin()
Grants Super Admin privileges.
-
Fires before the user is granted Super Admin privileges.
-
Fires after the user is granted Super Admin privileges.
-
functionrevoke_super_admin()
Revokes Super Admin privileges.
-
Fires before the user’s Super Admin privileges are revoked.
-
Fires after the user’s Super Admin privileges are revoked.
-
functionis_super_admin()
Determines whether user is a site admin.
-
Filters whether the user is allowed to add post meta to a post.
-
hookmap_meta_cap
Filters the primitive capabilities required of the given user to satisfy the capability being checked.
-
functioncurrent_user_can()
Returns whether the current user has the specified capability.
-
functioncurrent_user_can_for_blog()
Returns whether the current user has the specified capability for a given site.
-
functionauthor_can()
Returns whether the author of the supplied post has the specified capability.
-
functionuser_can()
Returns whether a particular user has the specified capability.
-
functionget_role()
Retrieves role object.
-
functionadd_role()
Adds a role, if it does not exist.
-
functionremove_role()
Removes a role, if it exists.
-
functionget_super_admins()
Retrieves a list of super admins.
-
functionmap_meta_cap()
Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.