Create capability in code so it can be selected
-
Hi there
What code do I have to add to my plugin so that a custom capability can be selected in your plugin to be applied to a role.
Use case:
I am displaying an admin submenupage for WooCommerce and right now it requires the capability “manage_woocommerce”
A client wants to give another role access to my plugin, but not to all of WooCommerce.I an only find ode online for custom post type registrations or adding capabilities to roles, but not how to add a capability that can be used later.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Create capability in code so it can be selected’ is closed to new replies.