File: wp-includes/class-wp-role.php
-
classWP_Role
Core class used to extend the user roles API.
-
methodWP_Role::__construct()
Constructor – Set up object properties.
-
methodWP_Role::add_cap()
Assign role a capability.
-
methodWP_Role::remove_cap()
Removes a capability from a role.
-
methodWP_Role::has_cap()
Determines whether the role has the given capability.
-
hookrole_has_cap
Filters which capabilities a role has.