WordPress.org

Ready to get started?Download WordPress

Forums

How do you edit roles? (6 posts)

  1. Southbound
    Member
    Posted 5 years ago #

    I'm looking for a way to add more capabilities to certain roles. I've found the roles and capabilities in the wp-admin/includes/schema.php file, but adding capabilities to the role there doesn't help.

  2. MichaelH
    Member
    Posted 5 years ago #

    See Roles and Capabilities, in the Resources section, a link to the Role Manager plugin.

  3. Southbound
    Member
    Posted 5 years ago #

    Thanks, I did try the Role Manager plugin, but it's not compatible with 2.7. In particular, the buttons with capabilities doesn't change when clicked. But even if it world work, I'd like to know where WP stores the role/capability data. Is it really in the schema.php file, and if so, why isn't it responding to changes in that file?

  4. MichaelH
    Member
    Posted 5 years ago #

    wp_user_roles is in wp_options table.

    Each user's role/capability is in a wp_capabilities record in wp_usermeta

  5. asechrest
    Member
    Posted 5 years ago #

    Southbound,

    FYI, I'm using the Role Manager plugin effectively in 2.7, and also in my recently uprgraded 2.7.1, to restrict Role capabilities and lower a role's User Level.

  6. Southbound
    Member
    Posted 5 years ago #

    Wow, that's a lot of content for one table cell! Perhaps I should give Role Manager a second chance before trying to figure out how that markup works...

    For future releases, I think it would be great with a wp_roles and wp_capabilities table.

Topic Closed

This topic has been closed to new replies.

About this Topic