Is It Possible to Restore Accidentally Deleted Widgets?

I accidentally deleted the widgets without dragging it to the inactive widgets section.

I have a backup of all the files and the database but i have changed many things on the site other than the widgets.

Read More

Can I only restore the widgets?

Related posts

Leave a Reply

3 comments

  1. You have to search the wp_options database table for option_name‘s that contains widget.

    searching for widgets in wp_options table

    That search results in:

    search result of the query

    Using the values of your backups, you’ll then proceed to restore the option_value of the missing widgets. And also the value of the option of sidebars_widgets.

    Goes without saying that backing up before doing this modifications is essential.

  2. Due to my impatience and lack of confidence in Hostgator’s willingness to assist me with this issue, I have found a possible solution if you are comfortable looking at source code. I recommend looking up the site you wish to recover the widgets from The WayBackMachine.

  3. Accidently deleted very essential widgets (wifi and battery)
    so created a new user and then copied its configuration to the older one,
    and IT WORKED!