0

I'm creating a plugin that will allow to create Pricing Tables in a fast and easy way. But, I'm not sure what rule to use for capability. What would you use? Right now I'm using edit_pages:

add_submenu_page( 'tools.php', 'SMK Pricing Tables', 'SMK Pricing Tables', 'edit_pages', 'smk_pricing_tables', 'admin_page' );

Should I use edit_theme_options ?

0

There is no right answer to this.

You need to use the capability or capabilities that allow the users you want to have access to have access and prevent the users you don't want to have access from having access.

I would tend to create a capability and/or role in this kind of circumstance, but again, it depends on what you need.

It is pretty easy to create a role with add_role. Also see add_cap. A role management plugin can help you work out what you need and what you don't.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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