wp_unregister_widget_control()
wp_unregister_widget_control( int|string $id ) 删除控件的控件回…
wp_unregister_widget_control( int|string $id )
删除控件的控件回调。
Remove control callback for widget.
删除控件的控件回调。
Remove control callback for widget.
目录锚点:#参数#源码
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $id | (int | string) | 小工具.ID。 |
源码(Source)
/**
* Remove control callback for widget.
*
* @since 2.2.0
*
* @param int|string $id Widget ID.
*/
function wp_unregister_widget_control($id) {
wp_register_widget_control( $id, '', '' );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 2.2.0 | wp-includes/widgets.php | 2 | 7 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!