wp_unregister_widget_control

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

wp_unregister_widget_control: 這個函式刪除了一個先前註冊的widget的控制函式。控制函式負責在WordPress管理區呈現小工具控制,允許網站管理員修改小工具的設定。

移除小工具的控制回撥。

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

常見問題

FAQs
檢視更多 >