britco / custom-caps
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 16
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2024-04-27 14:33:26 UTC
README
Adds ability to edit custom capabilities for users in the admin. Why this isn't in core is beyond me.
How to use
Register a new capability:
add_filter('custom_caps', function($caps) {
$caps[] = 'create_post_tag_terms';
return $caps;
});
$caps
is an array of custom capabilities (caps) that admins should be able to edit.
That's it! Now you can edit that capability for users by going to edit user screen.
Before
After