Issue Overview
A private WooCommerce support portal displayed a visible company dropdown during registration—exposing the names of all approved partner companies. This raised a major privacy concern.
The client needed to:
- Hide the list of partners from the public form
- Automatically assign users to a company based on their email domain
- Reject registrations from unauthorized domains
- Allow flexible updates to validation rules
What We Did
🔐 Removed public company selector
The visible company field was removed to prevent exposing internal partner data.
✉️ Email-based validation
We wrote a custom function that scanned the user's email domain and matched it to a list of approved companies.
🧠 Smart company assignment
When a match was found, the user was automatically assigned to the correct partner company—no dropdown required.
⛔ Block unauthorized access
If a domain didn’t match the whitelist, registration was blocked with a clear error message:
“Only authorized work email addresses will be approved.”
🛠️ Admin-editable messaging
We made the error message editable via the WordPress dashboard using the Code Snippets plugin—no need to touch code for future updates.
Final Result
Registrations are now secure, automated, and privacy-friendly. Partner companies can manage domain access dynamically, while unauthorized users are quietly filtered out—no friction, no risk.
Build smarter, safer user flows with us
From registration security to dynamic content access, Integriti Studio crafts custom WooCommerce workflows that work for your business—not against it.
Need help improving your WordPress forms or custom workflows? We build clean, reliable, and growth-driven WordPress solutions—without breaking a sweat.
Let’s Talk