Core Function
View Source on Trac ↗ wp_convert_widget_settings()
wp_convert_widget_settings( mixed $base_name, mixed $option_name, mixed $settings ) Converts the widget settings from single to multi-widget format.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $base_name string | Root ID for all widgets of this type. Required |
| $option_name string | Option name for this widget type. Required |
| $settings array | The array of widget instance settings. Required |
Return Value
(array)
The array of widget settings converted to multi-widget format.
Function Information
Since Version
2.8.0
Source File
wp-includes/widgets.php
Advertisement