Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp convert widget settings


Convert the widget settings from single to multi-widget format. See ticket #8441 for more information.


(string) (required) The base slug for a widget type.
Default: None
(string) (required) The name of the option where the widgets settings are saved.
Default: None
(array) (required) The array of settings for this type of widget.
Default: None

Return Values

The setting for the widget(s), updated to the multi-widget setting format introduced in 2.8

Change Log

Since: 2.8.0

Source File

wp_convert_widget_settings() is located in wp-includes/widgets.php


Widgets: is_active_widget(), the_widget(), register_widget(), unregister_widget(), wp_register_widget_control(), wp_unregister_widget_control(), wp_convert_widget_settings(), wp_get_widget_defaults(), wp_widget_description()

See also index of Function Reference and index of Template Tags.