B2B Roles WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Registers B2B user roles and capabilities.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/generoi/b2b-roles/releases/download/v0.1.1/b2b-roles.zipRegisters 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.
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.