WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
[resolved] How to "Add a new capability" ? (2 posts)

  1. firatozturk
    Member
    Posted 2 years ago #

    Hi,

    i could not find, hoe can i add a new capability. There is a Option like "Add a new capability". I can add a new capability. But i doesnt works. For Example; i want that the editors can see the password protected pages. How is it possible? Do i have to write some code for this?

    thanks

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Yes, you should write code in order to WordPress start to use new created capability. Something like this should be added:

    if ( current_user_can('new_added_capability') ) {
    // place code for functionality you wish to allow here
    }

    Regards,
    Vladimir.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.