Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

add comment

1 Answer 1

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
add comment

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