yard/wp-user-roles
An Acorn package for managing user roles in WordPress.
10,451
11
Larablocks Analysis
yard/wp-user-roles works with Laravel 10 to 13 (latest release v2.0.4, Mar 27, 2026).
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 2 of 4 checks; below the bar for Recommended on use.
- Works with Laravel 13, the current version
- Released in the last 12 months (Mar 27, 2026)
- 1,334 downloads a month (needs 10,000)
- 11 GitHub stars (needs 100)
State
Maintained- Last stable release: Mar 27, 2026.
- 2 releases in the last 12 months.
- First released: Sep 3, 2024.
- Monthly downloads: 1,334.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require yard/wp-user-roles |
|
| Latest Version: | v2.0.4 |
| PHP: | >=8.2 |
| Laravel: | 10 – 13 |
| License: | MIT |
| Last Updated: | Nov 23, 2026 |
| Links: | GitHub · Packagist |
Maintainer: Yard
wp-user-roles
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:createIn a multisite:
wp site list --field=url | xargs -n1 -I % wp acorn roles:create --url=%
About us
Related Packages
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v2.0.4 | >=8.2 | MIT | |
| v2.0.3 | >=8.1 | MIT | |
| v2.0.2 | >=8.1 | MIT | |
| v2.0.1 | >=8.1 | MIT | |
| 2.0.0 | >=8.1 | MIT | |
| 1.0.0 | ^8.0 | MIT |