Function: wp_convert_widget_settings

wp_convert_widget_settings( string $base_name, string $option_name, array $settings )

Convert the widget settings from single to multi-widget format.

Shortcut: wcws

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$base_name string
$option_name string
$settings array



WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.