{"id":10937050,"date":"2018-12-01T12:56:13","date_gmt":"2018-12-01T12:56:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=10937050"},"modified":"2024-09-20T13:34:20","modified_gmt":"2024-09-20T13:34:20","slug":"roles-and-capabilities","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/roles-and-capabilities\/","title":{"rendered":"Roles and Capabilities"},"content":{"rendered":"\n

WordPress uses a concept of Roles<\/a>, designed to give the site<\/a> owner the ability to control what users can and cannot do within the site. A site owner can manage the user access to such tasks as writing and editing posts<\/a>, creating Pages<\/a>, creating categories<\/a>, moderating comments<\/a>, managing plugins<\/a>, managing themes<\/a>, and managing other users<\/a>, by assigning a specific role to each of the users.<\/p>\n\n\n\n

WordPress has six pre-defined roles: Super Admin<\/a>, Administrator<\/a>, Editor<\/a>, Author<\/a>, Contributor<\/a> and Subscriber<\/a>. Each role is allowed to perform a set of tasks called Capabilities<\/a>. There are many capabilities including “publish_posts<\/a>“, “moderate_comments<\/a>“, and “edit_users<\/a>“. A default set<\/a> of capabilities is pre-assigned to each role, but other capabilities can be assigned or removed using the add_cap()<\/a> and remove_cap()<\/a> functions. New roles can be introduced or removed using the add_role()<\/a> and remove_role()<\/a> functions.<\/p>\n\n\n\n

The Super Admin<\/a> role allows a user to perform all possible capabilities. Each of the other roles has a decreasing number of allowed capabilities. For instance, the Subscriber<\/a> role has just the “read<\/a>” capability. One particular role should not be considered to be senior to another role. Rather, consider that roles define the user’s responsibilities within the site.<\/p>\n\n\n\n

Summary of Roles<\/h2>\n\n\n\n