WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: User Role Editor] How to "Add a new capability" ?

[Resolved] [Plugin: User Role Editor] How to "Add a new capability" ?

  • firatozturk
    Member

    @firatozturk

    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/

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulya
    Participant

    @shinephp

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: User Role Editor] How to "Add a new capability" ?’ is closed to new replies.