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

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulia

    (@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 ‘[Plugin: User Role Editor] How to "Add a new capability" ?’ is closed to new replies.