Sebsemillia
Sebsemillia

Reputation: 9476

Wordpress custom plugin not shown in roles except admin

I wrote a custom wordpress plugin that is shown in the left menu bar in the backend of WP.

My problem is, that it is just shown if I log in as an administrator. If the editor logs in he can't see it. Is there any way that I can enable it so that every role can see it?

I tried to google the problem but didn't get any satisfying results, that's why I am asking it here.

Thanks for your answer!

Upvotes: 0

Views: 3153

Answers (1)

Sudar
Sudar

Reputation: 20000

You need to set the proper capability, third parameter in the add_option_page() function which you would have used to create the menu.

http://codex.wordpress.org/Function_Reference/add_options_page

Upvotes: 2

Related Questions