[wp-hackers] Re: Delete/Clear Widgets in Database

Nathan Rice ncrice at gmail.com
Wed Dec 24 03:38:46 GMT 2008

Figured it out on my own.  Here's what I added:
$null = null;

It clears out all active widgets ... gives you a clean slate.


On Tue, Dec 23, 2008 at 10:28 PM, Nathan Rice <ncrice at gmail.com> wrote:

> I have several widgetized sections in a particular theme, and I'm looking
> for a way to clear out all the widgets placed into the sections in 1 swoop.
> Is there a single line I can place in my functions.php file that will
> basically take all the widgets currently placed into widget sections and
> remove them?

More information about the wp-hackers mailing list