britco/custom-caps 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

britco/custom-caps

最新稳定版本:v0.5.9

Composer 安装命令:

composer require britco/custom-caps

包简介

README 文档

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

统计信息

  • 总下载量: 72
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 15
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-14