wp_convert_widget_settings()将单一小工具的设置装换到多个小工具设置中

目录

描述

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

wp_convert_widget_settings() 描述

参数

$base_name

(string) (必填) The base slug for a widget type.

默认值: None

$option_name

(string) (必填) The name of the option where the widgets settings are saved.

默认值: None

$settings

(array) (必填) The array of settings for this type of widget.

默认值: None

wp_convert_widget_settings() 参数

返回值

(array

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

wp_convert_widget_settings() 返回值

历史

添加于 版本: 2.8.0

wp_convert_widget_settings() 历史

源文件

wp_convert_widget_settings() 函数的代码位于 wp-includes/widgets.php

wp_convert_widget_settings() 源文件

相关