Skip to content

britco/custom-caps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-caps

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors