WordPress.org

Ready to get started?Download WordPress

Forums

Are Role "Levels" Deprecated? (3 posts)

  1. gdvickery
    Member
    Posted 5 years ago #

    Hey WP Community,

    I'm working on a plugin for adding, editing and deleting roles in WordPress. My question is, are role "levels" deprecated?

    The reason I ask, is I can currently produce the same results using both named role capabilities and level role capabilities.

    If possible, I would like to exclude the "levels" from the role management page for my plugin. I think this will make it much easier for end users to understand the available permission structure, as apposed to referring to what level 3 or 8 means.

    I already have this functionality working in WP 2.5+, but I'm worried it will cause problems in the future.

    Thanks for your input.

  2. MichaelH
    Member
    Posted 5 years ago #

    The levels are deprecated in a sense though there are capabilities, such as level_4 that are to be equivalent to the old levels. I've noticed some plugins still using the older levels.

    I thought I read somewhere, that the role/capability system might be changed (simplified) in the future, but don't know if that has gained traction.

    See Roles and Capabilities and look at the Resources for plugins that deal with this subject.

  3. gdvickery
    Member
    Posted 5 years ago #

    Yea, I've noticed a couple plugins still use the "levels" approach. I just thought having both named permissions and level permissions might be confusing to the end user, especially if they aren't experienced with WordPress.

    At this point, I'm planning to "hide" the level permissions from my plugin for ease-of-learning. I can only see this changing if inconsistencies occur.

    Thanks for the feedback.

Topic Closed

This topic has been closed to new replies.

About this Topic