Proof of concept for a single-use WordPress widget
- Any use in any registered sidebar will disable the widget globally.
- Only works in the Customizer, not on Widget admin page.
- Proof concept. NOT SAFE FOR PRODUCTION.
The main functionality (i.e. JavaScript) was kindly shared by @krafter on WordPress StackExchange.