unregister_widget_control

函式
unregister_widget_control ( $id )
引數
  • (int|string) $id Widget ID.
    Required:
相關
  • wp_unregister_widget_control()
定義位置
相關方法
register_widget_controlwp_unregister_widget_controlwp_register_widget_controlunregister_widgetwp_render_widget_control
引入
2.2.0
棄用
2.8.0

unregister_widget_control: 在WordPress中取消註冊一個先前註冊的widget控制元件: 這個函式從註冊的小工具控制元件列表中刪除小工具控制元件。

wp_unregister_widget_control()的別名。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function unregister_widget_control($id) {
_deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' );
return wp_unregister_widget_control($id);
}
function unregister_widget_control($id) { _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' ); return wp_unregister_widget_control($id); }
function unregister_widget_control($id) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' );
	return wp_unregister_widget_control($id);
}

常見問題

FAQs
檢視更多 >