britco / custom-caps
v0.5.9
2015-11-24 02:09 UTC
Requires
- composer/installers: ~1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-13 03:02:38 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

