yard/wp-user-roles
最新稳定版本:v2.0.2
Composer 安装命令:
composer require yard/wp-user-roles
包简介
An Acorn package for managing user roles in WordPress.
README 文档
README
An Acorn package for managing user roles in WordPress.
Features
- Configure: Define custom roles and capabilities with a configuration file.
- (Re)Create: Insert roles into the database with a single wp-cli command.
- Clone roles: Quickly set up new roles based on existing ones.
- Delete roles: Remove any roles that you don’t need.
See config for all configuration options.
Requirements
Installation
-
Install this package with Composer:
composer require yard/wp-user-roles
-
Run the Acorn WP-CLI command to discover this package:
wp acorn package:discover
Usage
-
Publish the config file with:
wp acorn vendor:publish --provider="Yard\UserRoles\UserRolesServiceProvider" -
Run WP-CLI command to create roles:
Single site:
wp acorn roles:create
In a multisite:
wp site list --field=url | xargs -n1 -I % wp acorn roles:create --url=%
About us
统计信息
- 总下载量: 3.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-08