[resolved] Add custom options for "Author" roles. (2 posts)

  1. Max Chirkov
    Posted 5 years ago #

    Hi there,

    I have developed a small contact management plugin. The contacts come through the front-end, but their management will have to be handled by office personnel within the WP dashboard. The Author role seems to be perfect for this purpose since it doesn't offer access to pages, settings, plugins and themes. Posts and categories are ok since we want them to contribute to blogging as well. My problem is that I can't figure out how to provide the back-end access to the plugin within the Author roles. The plugin hooks in via Settings API, which requires "manage_options" capability by default. How can I work around it to let "Author" roles to access this particular plugin?

    Thank you!

  2. Max Chirkov
    Posted 5 years ago #

    Got totally sidetracked and forgot that add_menu_page() supports capability parameter. Issue resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.