Automating Wholesale Role Assignment and Registration
php
dev.to
I built a WooCommerce plugin to solve a pretty common B2B problem in WordPress: the store needs to know which buyers are wholesale customers before it can show the right prices, payment methods, tax handling, and product access. In WooCommerce, that decision usually comes down to user roles. The problem is that default WordPress and WooCommerce roles are too generic for wholesale workflows, and many stores end up patching things together with custom PHP, manual account edits, or inconsistent ap