register_widget_control()

register_widget_control( int|string $name, callable $co…

register_widget_control( int|string $name, callable $control_callback, int $width = , int $height = , mixed $params )

为自定义选项注册小部件控件回调。
Registers widget control callback for customizing options.

目录锚点:#说明#参数#返回#源码


说明(Description)

另见函数 wp_register_widget_control()


参数(Parameters)

参数 类型 必填 说明
$name (int | string) 必需 边栏ID。
$control_callback (callable) 必需 控件回调以显示和处理窗体。
$width (int) 可选 小部件宽度。
$height (int) 可选 小部件高度。
$params (mixed) 必需 小部件参数。

返回(Return)

无返回值


源码(Source)

更新版本 源码位置 使用 被使用
2.8.0 wp-includes/deprecated.php:2168 0 3
类别:WordPress 函数手册

本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

评论 (0)COMMENT

登录 账号发表你的看法,还没有账号?立即免费 注册