1 vote
Accepted

How do I create a custom role capability?

Tested with WordPress 6.0, and it works: add_action( 'activated_plugin',function( $plugin,$network_activation ){ add_role( 'your_custom_role_slug', __( 'Your custom role title','your-plugin-domain'...
user avatar
  • 61

Only top scored, non community-wiki answers of a minimum length are eligible