WP Manifestindependent plugin directory
manifest / users / b2b-roles

B2B Roles

Registers B2B user roles and capabilities.

by Genero · github.com/generoi/b2b-roles · website

0stars
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/generoi/b2b-roles/releases/download/v0.1.1/b2b-roles.zip

Readme

B2B Roles

Registers B2B user roles and capabilities.

Roles

Role slug Label Capabilities
b2b_customer B2B Customer read, b2b_access

New self-registrations start unverified. Admins verify them under Users → B2B customers.

Each verified customer can have a personal discount percentage (0–100). It is stored in user meta and applied to WooCommerce product prices (catalog, single product, cart, and checkout).

Administrators receive all plugin capabilities automatically.

Installation

Requires the Genero Satis repo in your consuming project's composer.json:

{
  "repositories": [
    { "type": "composer", "url": "https://generoi.github.io/packagist" }
  ]
}

Then:

composer require generoi/b2b-roles

Development

composer install
composer lint       # check code style
composer lint:fix   # apply fixes

Releasing

gh release create vX.Y.Z --title "vX.Y.Z" --notes "..."

Publishing the release triggers .github/workflows/release.yml, which builds the distribution zip and rebuilds the Satis index so the new tag becomes installable via Composer.

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v0.1.1 Jun 24, 2026 b2b-roles.zip 0
v0.1.0 Jun 23, 2026 b2b-roles.zip 0