Core Function
View Source on Trac ↗ retrieve_widgets()
retrieve_widgets( mixed $theme_changed = false ) Validates and remaps any "orphaned" widgets to wp_inactive_widgets sidebar,
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | bool) $theme_changed Whether the theme was changed as a boolean. A value of 'customize' defers updates for the Customizer. Required |
Return Value
(array)
Updated sidebars widgets.
Function Information
Since Version
2.8.0
Source File
wp-includes/widgets.php
Advertisement