retrieve_widgets ( $theme_changed = false )
- (string|bool) $theme_changed Whether the theme was changed as a boolean. A value of 'customize' defers updates for the Customizer.
- (array) Updated sidebars widgets.
- Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Look for "lost" widgets, this has to run at least on each theme change.