User Roles and Capabilities Flashcards
Q: What is a user role in WordPress?
A: A collection of permissions that defines what actions a user can perform on a site.
Q: How many default user roles does WordPress have?
A: Six (Subscriber, Contributor, Author, Editor, Administrator, Super Admin).
Q: What is the primary purpose of user roles?
A: To manage access and control what users can and cannot do on a WordPress site.
Q: What is the role of a Super Admin?
A: A user with access to the entire network of sites in a WordPress Multisite.
Q: Where can you assign or change a user’s role in the WordPress admin?
A: In the Users section of the dashboard.
Q: What can a Subscriber do by default?
A: Manage their own profile and leave comments.
Q: What can a Contributor do by default?
A: Write and edit their own posts but cannot publish them.
Q: What can an Author do by default?
A: Publish, edit, and delete their own posts.
Q: What can an Editor do by default?
A: Manage and edit all posts, including those written by others.
Q: What can an Administrator do by default?
A: Perform all actions, including managing plugins, themes, and user roles.
Q: What are capabilities in WordPress?
A: Specific permissions that determine what actions a user can perform.
Q: How are capabilities linked to user roles?
A: Each role has a set of capabilities assigned to it.
Q: Name a capability that allows a user to edit posts.
A: edit_posts.
Q: Name a capability that allows a user to delete posts.
A: delete_posts.
Q: What capability is required to manage plugins?
A: activate_plugins.
Q: What function is used to add a custom role in WordPress?
A: add_role().