Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/britco/custom-caps/archive/refs/heads/master.zipOn Packagist as britco/custom-caps:
composer require britco/custom-capsNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
custom-caps
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:
$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