Suppose I'm using a Theme which has a custom panel in the admin area, or I'm using a Plugin, has similar Admin menu button. But all such button are only visible to Administrator. When I'm loggin in from an editor account they are gone.
But I need them badly. I want an Editor can have access to those panels, and I want to let them the privilege.
In that case I'll need to know the theme's or plugin's specific ROLE's or CAPABILITIES' name and then I'll need to assign 'em to a certain user. But here comes the million dollar question:
HOW COME I FIND OUT A THEME'S OR PLUGIN'S SPECIFIC CAPABILITIES?
//suppose you have a custom role called 'architect' and you want to add a capability called `can access architect zone` global $wp_roles; $wp_roles->add_cap( 'architect', 'can_access_architect_zone' );
code cited from:this link
How can I assume that the plugin or theme uses the 'can_access_architect_zone' as its capability?