Forums

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

  1. maxchirkov
    Member
    Posted 11 months 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. maxchirkov
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Topic

Tags

No tags yet.