Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.89 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.89 KB

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:

    wp acorn roles:create