Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I've been working with widgets a lot lately and have amassed a ton of widgets in the inactive widgets collection.
Can someone share a script or plugin that will remove all inactive widgets from the site?
$widgets = get_option('sidebars_widgets');
$widgets['wp_inactive_widgets'] = array();
$widgets = array();
Required, but never shown