WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Hooking into add_submenu_page

This plugin uses add_menu_page function to create an admin page and I was wondering is there a way to change the capability that is set by this function for this plugin?

share|improve this question

marked as duplicate by toscho Nov 8 '12 at 14:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You can club it with remove_menu_page to first remove the page & then re-adding it

Copy the add_menu_page line from plugin. Paste it in your theme & change the capability. Then immediately before this line add remove_menu_page($menu_page_slug);

Use the same hook but with a higher priority

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.