New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

yard/wp-user-roles

An Acorn package for managing user roles in WordPress.
9,189 11
Install
composer require yard/wp-user-roles
Latest Version:v2.0.4
PHP:>=8.2
Laravel:10 – 13
License:MIT
Last Updated:Oct 26, 2026
Links: GitHub  ·  Packagist
Maintainer: Yard

wp-user-roles

Code Style PHPStan Tests Code Coverage Badge Lines of Code Badge

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

  1. Install this package with Composer:

    composer require yard/wp-user-roles
    
  2. Run the Acorn WP-CLI command to discover this package:

    wp acorn package:discover
    

Usage

  1. Publish the config file with:

    wp acorn vendor:publish --provider="Yard\UserRoles\UserRolesServiceProvider"
    
  2. 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

banner

Related Packages

owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

43,476,394 3,472
mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

22,513,234 1,979
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,507,424 643
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,281,495 2,589
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,797,093 271

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