britco/custom-caps

Maintainers

Package info

github.com/britco/custom-caps

Type:wordpress-plugin

pkg:composer/britco/custom-caps

Statistics

Installs: 72

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.5.9 2015-11-24 02:09 UTC

This package is not auto-updated.

Last update: 2026-03-14 23:59:46 UTC


README

Circle CI

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

image

After

image