Feature Request: Custom JSON/Metadata Field for Product Variations in License Data
I'm building plugins with Basic and Pro tiers (different features, not just activation counts) and currently rely on variation_id or parsing variation_title to enable the right features. It works, but it's fragile - any new feature, renamed variation, or additional tier means I have to update the plugin code and push updates to all customers.
Feature Request: Add an optional custom settings field (preferably JSON) to each product variation that gets included in the license data during validation/activation.
Example of what it could return:
{
"tier": "pro",
"features": ["advanced_analytics", "premium_support", "custom_modules"],
"max_sites": 10
}
This would allow us to dynamically control features directly from the variation settings without hardcoding IDs or titles. It would make the licensing system much more flexible for:
- Granular feature gating
- Add-ons and bundles
- Changes to variations without forcing plugin updates
I think this would be a big improvement for anyone selling feature-tiered plugins or themes.
Happy to discuss details or test it out. Has anyone else needed something like this?
Thanks!
