• Resolved trobi

    (@trobi)


    Hi,

    I had a custom plugin created and would like to allow a user to work only on this plugin. This capability does not appear in the default list of your plugin – how do I know what the proper capability name for the plugin is?

    Best regards
    Trobi

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author PublishPress

    (@publishpress)

    Hi @trobi Thanks for using CME

    If your plugin is written using the default WordPress approach, it will automatically appear inside CME.

    If it doesn’t, you can try read the code. If you find it, you can add the permission manually https://publishpress.com/docs/add-new-permissions/

    Plugin Author Kevin Behrens

    (@kevinb)

    Capability names for permission checks are usually found in add_menu_page, add_submenu_page or current_user_can calls. If you find that your plugin code is applying a custom capability in that way, add it to desired roles using CME’s “Add Capability” sidebar.

    Keep in mind that most custom plugins don’t apply any custom capability checks. It requires some extra development logic, and CME will not write that code 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘capability name’ is closed to new replies.