Release Date: Dec 24, 2018 | Gravity Perks – Limit Choices allows you to limit how many times each “choice” on a multi-choice field may be selected (e.g. Radio Buttons, Checkboxes, Drop Downs, etc). It works with Product and Option fields with these input types as well.
How does it work?
This perk enables you to specify a limit per choice on your multi-choice field. If a choice reaches its specified limit it will no longer appear in the field on the front-end. While the choice is visually removed from the frontend, it is still editable via the Form Editor so the limit may be adjusted. Disable Exhausted Choices Rather than Remove If you would like to disable rather than remove exhausted choices, just add this code to your theme’s functions.php file:
add_filter( ‘gplc_remove_choices’, ‘__return_false’ );