WP_Roles
Core class used to implement a user roles API.
Core class used to implement a user roles API.
Make private/protected methods readable for backward compatibility.
Constructor
Set up the object properties.
Add capability to role.
Add role name with capabilities to list.
Sets the site to operate on. Defaults to the current site.
Retrieve list of role names.
Retrieve role object by name.
Gets the available roles data.