WordPress.org

Codex

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

Function Reference/wp convert widget settings

Description

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

Parameters

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

Return Values

(array) 
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

Related

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.